[zeromq-dev] How to detect if a remote socket has closed

Ilja Golshtein ilejn at yandex.ru
Mon Aug 16 21:29:42 CEST 2010

16.08.2010, 23:02, "Pieter Hintjens" <ph at imatix.com>:
> On Mon, Aug 16, 2010 at 7:26 PM, <David.Briant at ubs.com> wrote:
>>  I’m coding in python and I can’t figure out how to detect if a remote
>>  process has closed or terminated (I exited my python server and judging from
>>  the cpu usage zmq is trying to re-establish connection but I just can’t see
>>  how to determine that in the API). Is it possible? and if so how do I do it.
> You can't detect it, and that is deliberate.

It is not bad because server restart is transparent for clients.

If it is not desired, some application level timeout should be introduced.

Best regards
Ilja Golshtein

More information about the zeromq-dev mailing list