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

Laurent Alebarde l.alebarde at free.fr
Mon Oct 21 10:14:56 CEST 2013


Le 20/10/2013 21:36, Pieter Hintjens a écrit :
> 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).
I could finally manage to make a deeper debugging session. Actually, the 
application message do not reach the proxy until the handcheck is 
finished. Impressive library but not easy to dig into its internals (for 
me).

So, everything is fine.

Thanks Pieter.

>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131021/7ce64530/attachment.htm>


More information about the zeromq-dev mailing list