Re: SO_LINGER

2013-01-24 Thread Christian Posta
It's enabled only if there is a value > -1 set... if (soLinger > -1) { sock.setSoLinger(true, soLinger); } else if (soLinger == -1) { sock.setSoLinger(false, 0); } Otherwise it defaults to whatever SocketFactory.getDefault().createSocket() produces.

Re: SO_LINGER

2013-01-24 Thread Mohit Anchlia
It appears from the doc that it's enabled and you have to specifically set it to -1 Sent from my iPhone On Jan 24, 2013, at 9:19 AM, Christian Posta wrote: > No, it's not enabled by default. > You can enable it with the following settings on your connection URI: > > ?soLinger= > > > On Thu,

Re: SO_LINGER

2013-01-24 Thread Christian Posta
No, it's not enabled by default. You can enable it with the following settings on your connection URI: ?soLinger= On Thu, Jan 24, 2013 at 8:47 AM, Mohit Anchlia wrote: > Is SO_LINGER enabled by default? > > http://activemq.apache.org/tcp-transport-reference.html > -- *Christian Posta* http: