[zeromq-dev] Security failures & reconnection

Pieter Hintjens ph at imatix.com
Sun May 18 11:19:25 CEST 2014


Hi all,

Martin Hurton has pushed a patch that fixes the behavior of libzmq on
security failures. Previously a client would reconnect over and over.
Now it does not.

There is an impact (a positive one) on apps that are doing security.
Before, if you connected a socket then there would be a pipe created,
whether or not the server accepted the connection. Now there is no
pipe created until the connection has been accepted. So before
zmq_send() would happily send to this pipe, which would cause message
loss when using DEALER, REQ, or PUSH sockets. Now zmq_send() will work
as you'd expect (and block if there's no successful connection).

-Pieter



More information about the zeromq-dev mailing list