[zeromq-dev] Assert when sending from a polled REQ to a XREP socket.

Delaney Gillilan delaneygillilan at gmail.com
Wed Oct 13 00:46:54 CEST 2010


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.

 >>xrep.py console
Creating context
Creating XREP socket
Binding XREP socket
Waitin for a connection
['\x00\xd9L%\\TrO#\x9di\x00jv\x99\x8du', '', 'Hello from 2372']
Response sent!
Waitin for a connection

 >>req.py
I'm 2372
Creating context
Creating REQ client
Listening to REQ client
Creating Poller
Registering socket with Poller
Socket status is: POLLOUT
sending request to server...
request sent.
Socket status is: POLLIN
receiving response...
Assertion failed: msg_->flags & ZMQ_MSG_MORE (..\..\..\src\req.cpp:225)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xrep.py
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101012/e9ace8e3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: req.py
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101012/e9ace8e3/attachment-0001.ksh>


More information about the zeromq-dev mailing list