Publisher close takes 10 mins in Lan failure
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ASHOK_Chawla
Posted On:   Saturday, November 20, 2004 07:17 AM

Hi ,

We are running SwiftMQ 5.0 on HP-UX (with -XdoCloseWithReadPending flag).


The client which connect to this router is also running on HP-UX. In case of lan failure we need to close client application. When we call close on publisher in case of lan failure , it takes 10 mins to close the connection.


Is there anyway we can reduce this time.


Regards
Ashok Chawla

Re: Publisher close takes 10 mins in Lan failure

Posted By:   Andreas_Mueller  
Posted On:   Monday, November 22, 2004 03:58 AM

SwiftMQ detects half-open sockets by keepalive messages. They are sent from both sides and normally force an IOException if you pull the cable. However, sometimes it doesn't throw an IOException immediately but after some time. I guess when the TCP buffer is full or something else.


Usually it helps to decrease the keepalive interval of the connection factory you use. Default is 60000 (1 min). Set it to 10000 and see what happens.
About | Sitemap | Contact