[zeromq-dev] POLLOUT not eventing on bind with no peer
Justin Karneges
justin at affinix.com
Wed Feb 1 21:45:05 CET 2012
On Wednesday, February 01, 2012 12:38:48 PM Chuck Remes wrote:
> On Feb 1, 2012, at 2:11 PM, Justin Karneges wrote:
> > On Wednesday, February 01, 2012 12:00:22 PM Justin Karneges wrote:
> >> If I create a socket with bind, but nobody has connected yet, then I do
> >> not receive POLLOUT events. How can I determine when the socket
> >> becomes writable in an event-driven fashion?
> >
> > Sorry, I apologize for the stupid question. The answer is the same as my
> > earlier one blocking send. The socket becomes writable once a peer has
> > connected.
> >
> > I must admit I still find it confusing that a socket with bind does not
> > immediately have a background write queue. Was this an intentional
> > design decision, or just something that hasn't been implemented yet?
>
> It's intentional. The mailing list archives have the answer... I know
> sustrik has answered this a few times. Search for the subject
> "bind/connect assimetry" (yes, use that misspelling).
Thanks, found here:
http://thread.gmane.org/gmane.network.zeromq.devel/6810/focus=6813
> I'll add this to the FAQ.
Excellent.
Justin
More information about the zeromq-dev
mailing list