[zeromq-dev] does 0mq keep-alive for connections?

Martin Sustrik sustrik at 250bpm.com
Mon Jan 23 01:23:39 CET 2012


On 22/01/12 13:02, Sergey Matveychuk wrote:

> I think the patch will resolve my problem.

Are you sure about that?

First, keepalives are meant for the situation where the network 
connectivity between peers is broken (cable pulled out from the socket, 
switch turned off etc.) Is that your use case?

If, for example, the peer application fails, OS normally notifies you 
about the fact and connection is closed immediately.

Moreover, TCP keep-alive interval is set to 2 hours or more (see RFC 
1122). Is that sufficient for you?

Martin



More information about the zeromq-dev mailing list