[rabbitmq-discuss] Open Connections when sender closes

Michael Klishin michael at rabbitmq.com
Tue Oct 8 10:23:23 BST 2013

On oct 8, 2013, at 12:21 a.m., Warrick Fitzgerald <warrick.fitzgerald at gmail.com> wrote:

> Obviously after this happens a few times there's a lot of connections open to RabbitMQ.
> How should this be handled? Does the server have some kind of timeout of heartbeat that can be used so that it cleans up the connections that are no longer in use?

Those connections are very likely to be in TIME_WAIT state.

Yes, detecting peer failure early is exactly what AMQP 0-9-1 heartbeats
were added for:

Alternatively you can try enabling SO_LINGER on the socket (if your client
allows modifying socket options).

See http://rabbitmq.1065348.n5.nabble.com/Long-timeout-if-server-host-becomes-unreachable-td30275.html,
which is the same question about a specific client.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131008/442e0e95/attachment.pgp>

More information about the rabbitmq-discuss mailing list