[rabbitmq-discuss] Noticed way too many open connections
cwstorm at gmail.com
Mon Dec 2 21:10:37 GMT 2013
Thanks Michael. So if I set heartbeat timeout, if the specific
conn/channel hasn't been closed for a specified time, then the rabbit
server will close that connection/channel, right? Is there any harm in
putting this in the code? I want to make sure that this is good practice
On Mon, Dec 2, 2013 at 2:20 PM, Michael Klishin <michael.s.klishin at gmail.com
> 2013/12/2 cw storm <cwstorm at gmail.com>
>> I'm thinking of adding setConnectionTimeOut to the open connection
>> service so that if that connection/channel did not close properly, the
>> rabbit mq server will close it after the timeout has been reach. Please
>> let me know if this is best practice or not.
> setConnectionTimeOut configures a value that's passed to Socket#connect.
> What you want to set is heartbeat timeout
> (say, to 30-60 seconds). Note that both server and client do not
> immediately detect when their peer is unreachable
> due to how TCP works (TCP connections will sit there in TIME_WAIT state
> for some time). Heartbeats
> enable such situations to be detected earlier.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss