[zeromq-dev] Assert when sending from a polled REQ to a XREP socket.
Pieter Hintjens
ph at imatix.com
Wed Oct 13 12:03:39 CEST 2010
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
More information about the zeromq-dev
mailing list