[zeromq-dev] issue : libzmq can send messages in a curve socket before the handcheck is finished !

Pieter Hintjens ph at imatix.com
Sun Oct 20 21:36:41 CEST 2013

On Sun, Oct 20, 2013 at 8:13 PM, Laurent Alebarde <l.alebarde at free.fr> wrote:

> Thanks for your sunday answer :-) . What I see, as described below, is that
> when I block the handcheck with breakpoints in a multithreading debugging
> session (I know you don't like that ;-) ), the main test program can send
> data in a non blocking way and with a valid return value.

Yes, this is valid and normal. Message sending is independent of
connection status, until the HWM is reached.

> What I don't know is if the application data is queued somewhere (the pipe
> you are talking about ?) in a way the handcheck finaly goes on the wire
> first, or if application data may go on the wire first and be rejected by
> the peer until the handcheck is finished ?

It should be provable; send a message before connecting, connect, and
the message gets delivered. (Dealer socket or Push socket).


More information about the zeromq-dev mailing list