ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TCP connection close from client side - TIME_WAIT

Post new topic  Reply to topic
 TCP connection close from client side - TIME_WAIT « View previous topic :: View next topic » 
Author Message
vickas
PostPosted: Thu Apr 21, 2016 1:48 am    Post subject: TCP connection close from client side - TIME_WAIT Reply with quote

Centurion

Joined: 18 Aug 2013
Posts: 126

Hie All,

I have a client flow which exchanges data & heartbeats over TCP/IP .
The requirement is to exchange the data maintaining a persistent connection to the TCP servers & to close the connection only when there isnt any heartbeats/Ack from the servers .

so I used 2 TCP client output nodes ( same IP & port ) .
1 TCP client output node ( close connection : NO ) to send the heartbeats & data msgs continuously & other TCP client output node to close the connection ( connected to close terminal ) if heartbeats are not recieved for a time period more than 60 secs .

besides this , i have a Tcp client input node to recieve the acks/msgs from the server .

All the Data & heartbeats are exchanged continously as expected but
The issue is , we see frequent disconnections at the server End . They say that the connection close initiation is happening from the esb server frequently but from the interface logs we see continous flow of data & heartbeats .



when we did netstat -an | grep 11111

it always shows the connection as ESTABLISHED as such
tcp 0 1 ::ffff:xx.xxx.xxx.xx:3333 (esb server ) ::ffff:xx.xx.xx.xx:1111(tcp server ) ESTABLISHED

but sometimes along with the following we see TIME_WAIT
tcp 0 0 xx.xxx.xxx.xx:6643 (esb server ) xx.xx.xx.xx:1111(tcp server ) TIME_WAIT
tcp 0 1 ::ffff:xx.xxx.xxx.xx:3333 (esb server ) ::ffff:xx.xx.xx.xx:1111(tcp server ) ESTABLISHED


tcp 0 0 xx.xxx.xxx.xx:8829 (esb server ) xx.xx.xx.xx:1111(tcp server ) TIME_WAIT
tcp 0 1 ::ffff:xx.xxx.xxx.xx:3333 (esb server ) ::ffff:xx.xx.xx.xx:1111(tcp server ) ESTABLISHED


what can be the issue ??
ran the trace , the flow isnt closing any connections explicitly .
have harcoded the ip address & port on the nodes ( didnt use any configurable service ) & using ONE CONNECTION option available .
Back to top
View user's profile Send private message
mpong
PostPosted: Thu Apr 21, 2016 9:52 am    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

It is something to do with the close terminal that you have wired, if the connection close is initiated from the esb server.

Why don't you set close connection property as "after timeout" on your first client output node?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TCP connection close from client side - TIME_WAIT
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.