[zeromq-dev] Assert when sending from a polled REQ to a XREP socket.
Pieter Hintjens
ph at imatix.com
Wed Oct 13 12:23:04 CEST 2010
Hi Delaney,
So, if 0MQ asserts or crashes when passed an invalid message on the
wire, we consider this a bug. Since you have a nice test case, could
you report this to the 0MQ issue tracker, and post your code to a gist
(gits.github.com)?
-Pieter
On Wed, Oct 13, 2010 at 12:03 PM, Pieter Hintjens <ph at imatix.com> wrote:
> On Wed, Oct 13, 2010 at 12:46 AM, Delaney Gillilan
> <delaneygillilan at gmail.com> wrote:
>
>> Just starting out with pyzmq and zeromq in general. So far the guides been
>> really helpful. There is no example of how to hook up a REQ/XREP connection
>> using polling. I'm sure its something simple. I've tried
>> socket.recv_multipart() as well with the same error. Any ideas would be
>> appreciated.
>
> Using zmq_poll is orthogonal to using the socket types and envelopes.
> The error message is not very helpful but what it says is:
>
> - you are reading a message via a REQ socket
> - REQ sockets have particular requirements in terms of envelopes
> - you did not send the correct envelope
>
> Read Ch3 specifically with respect to the message envelopes that REQ
> sockets require.
>
> 0MQ's behaviour in asserting is not really nice but at least it makes
> sure you see the problem right away.
>
> -Pieter
>
--
-
Pieter Hintjens
iMatix - www.imatix.com
More information about the zeromq-dev
mailing list