[zeromq-dev] assertion failure with master

Martin Sustrik sustrik at 250bpm.com
Mon Nov 8 12:33:11 CET 2010


On 11/08/2010 12:28 PM, Pieter Hintjens wrote:
> On Mon, Nov 8, 2010 at 12:20 PM, Martin Lucina<mato at kotelna.sk>  wrote:
>
>> So you're saying a non-blocking send () may simply return with no error and
>> less bytes written?  I guess that makes sense, I was wondering about that
>> case but the POSIX docs were not terribly obvious on this.
>
> I've never heard of this before.  The Linux man page for send() says:
> "If the message is too long to pass atomically through the underlying
> protocol, the error EMSGSIZE is returned, and the message is not
> transmitted."
>
> Could that be Linux-specific?

Neither Linux nor POSIX specs are clear about this, however, IMO the 
error only makes sense for datagram-based protocols.

Martin



More information about the zeromq-dev mailing list