[zeromq-dev] PUB doesn't discard msg when no SUB

Martin Sustrik sustrik at 250bpm.com
Fri May 27 08:08:38 CEST 2011


On 05/26/2011 10:28 PM, Ian Barber wrote:

> I guess the other option is around polling - can we have polling be
> triggered based on connection? E.G. could we trigger on poll_out only
> when a connection is available to send to. I'm not sure how that would
> be fit with edge triggered if we connect right away and then poll.

It works that way with socket types that block on HWM, say PUSH. For 
socket types that drop on HWM, the assumption is that the socket would 
always be in POLLOUT state (as the send call never blocks).

Martin



More information about the zeromq-dev mailing list