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.