[zeromq-dev] Python / ZMQ - EAGAIN

MinRK benjaminrk at gmail.com
Mon Apr 23 18:57:12 CEST 2012


On Mon, Apr 23, 2012 at 09:37, Antonio Teixeira <eagle.antonio at gmail.com>wrote:

> Ok So here I'm one more time :)
>
> In my async framework I do use zmq.noblock ( Poller is not green enough :D
> ) to avoid blocking when doing a recv() or send()
>
> The question is dead simple but i couldn't find a way to differentiate
> this situation.
>
> How can i distinct between EAGAIN raised because the socket is not ready.
>
> Or
>
> EAGAIN raised because on a REQ socket i'm calling send() instead of recv()
>

Easy:  EAGAIN is not raised on a REQ socket calling send when it should be
recv, EFSM is.


>
>
> Regards
> Antonio
>
>
> _______________________________________________
> 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/20120423/48b46665/attachment.htm>


More information about the zeromq-dev mailing list