[zeromq-dev] blocking send when no peer

Ian Barber ian.barber at gmail.com
Wed Feb 1 13:40:13 CET 2012


On Tue, Jan 31, 2012 at 10:58 PM, Justin Karneges <justin at affinix.com>wrote:

> On Tuesday, January 31, 2012 02:42:48 PM Justin Karneges wrote:
> > I'm observing the behavior that when I send to a PUSH socket I've set to
> > bind (as opposed to connect), without any peer existing yet, that the
> send
> > call blocks instead of backgrounding.
>
> It seems to be bind-specific.  This code hangs, after only printing the
> first
> message:
>
>
It's because zeromq creates the internal queue on the first connection, so
there's nothing there at bind time to push to.

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120201/df83a1f9/attachment.htm>


More information about the zeromq-dev mailing list