[zeromq-dev] ZMQError: Resource temporarily unavailable
MinRK
benjaminrk at gmail.com
Sat Oct 11 20:19:12 CEST 2014
On Wed, Oct 8, 2014 at 1:11 PM, Karthik Sharma <karthik.sharma at gmail.com>
wrote:
> I have an zmq function as below
>
> def recieve_messages(self):
> string = self.sub_socket.recv(flags=zmq.NOBLOCK)
> print('flow mod messages recieved {}'.format(string))
>
>
> When I run the program however I get the following error.
>
> string = self.sub_socket.recv(flags=zmq.NOBLOCK)
> File "socket.pyx", line 616, in zmq.core.socket.Socket.recv
> (zmq/core/socket.c:5961)
> File "socket.pyx", line 650, in zmq.core.socket.Socket.recv
> (zmq/core/socket.c:5832)
> File "socket.pyx", line 119, in zmq.core.socket._recv_copy
> (zmq/core/socket.c:1669)
> ZMQError: Resource temporarily unavailable
>
>
> Can someone explain what is likely causing this error.
>
There is no message to receive. That's what NOBLOCK means – it will always
finish immediately, either returning a message if there is one, or raising
ZMQError(EAGAIN) if there is not.
-MinRK
>
> Regards,
> Karthik.
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20141011/b88c2b58/attachment.htm>
More information about the zeromq-dev
mailing list