[zeromq-dev] POLLOUT not eventing on bind with no peer
Justin Karneges
justin at affinix.com
Wed Feb 1 21:11:34 CET 2012
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?
Justin
More information about the zeromq-dev
mailing list