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

Pieter Hintjens ph at imatix.com
Thu May 26 21:48:14 CEST 2011

On Thu, May 26, 2011 at 12:43 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> However, if people feel the other behaviour is desirable as well, maybe
> a socket option could help?

Isn't the real issue here that connect is asynchronous?

I've thought often that making connect synchronous (at the API level)
would solve a lot of 'surprising' aspects, without doing any harm. Of
course there needs to be the option of doing non-blocking connects,
since we sometimes want that. But it's a minority use case. This is
also how the normal TCP socket API works. Synchronous connects unless
you do extra work to make them non-blocking.


More information about the zeromq-dev mailing list