[zeromq-dev] blocking send when no peer
Justin Karneges
justin at affinix.com
Wed Feb 1 18:43:44 CET 2012
On Wednesday, February 01, 2012 04:40:13 AM Ian Barber wrote:
> 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.
Hmm, are outbound queues per-connection only then? Or is there a socket-level
queue that is just being lazy created?
Justin
More information about the zeromq-dev
mailing list