[zeromq-dev] Pub-sub issue

Martin Sustrik sustrik at 250bpm.com
Fri Mar 18 23:15:12 CET 2011


Hi Pieter,

> Using 0MQ/2.1 and the 2.2 development master, I'm hitting a serious
> issue with a basic pub-sub usecase and would appreciate if anyone can
> confirm the issue by reproducing it.
>
> The client&  server in C are at https://gist.github.com/875932
>
> When you start the server, then the client, it receives 2-part
> messages and exits when it detects a malformed message. The client
> will report "BAD MULTIPART" if it detects a malformed message.
>
> What appears to happen is that the first frame of an N-part message
> sometimes gets dropped just after connection negotiation.

Reproduced. Problem found. It arises when new connection is established 
at the moment when a message is half-sent.

When created, the pipe should drop any tail parts of the message, which 
it does not.

Martin



More information about the zeromq-dev mailing list