[zeromq-dev] Reconnect doesn't work for Push-pull socket if push server goes down unsafely

Sunil khatri sunil.ncb at gmail.com
Sun Sep 30 15:30:23 CEST 2012

Apologies for delayed response.
>                         zmq::message_t msg(strlen(str));
>                         memcpy(msg.data(), str, strlen(str)+1);

>> This look like an error to me.

 Thanks Martin, my mistake; but same case persists after correcting above

> When you kill the server, is the client still receiving messages ?
> It may take some time for client to drain receive buffers and detect
> the peer is down.

Yes it waits for some time until all messages are not finished by client
and after this tcp socket remains in close_wait state,
I restarted the push server once all messages are read by client, but
no re-connection.

- Sunil Khatri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120930/b09be490/attachment.htm>

More information about the zeromq-dev mailing list