[zeromq-dev] Epolling on FD doesn't work for 2.1.11

Paul Colomiets paul at colomiets.name
Fri Mar 23 22:57:28 CET 2012


Hi Andrzej,

On Fri, Mar 23, 2012 at 12:31 PM, Andrzej K. Haczewski
<ahaczewski at gmail.com> wrote:
> There is one thing that bothers me though: why does the scheme I used
> works for ZeroMQ 3.1.0 and CrossroadsIO, as I tired both and they work
> with registering FD right away with no recv() calls in between
> connect() and epoll(), and it doesn't work for ZeroMQ 2.1.
>

I haven't look at the examples but the differences are, at least:

1. zeromq 3 uses eventfd instead of socketpair to wakeup application thread

2. zeromq 2 uses single notification channel to for both
zmq_send and zmq_recv, so you *must* try to do zmq_recv
after you have just done zmq_send, as Robert pointed out
(I'm not sure it's not the case for zmq3)

-- 
Paul



More information about the zeromq-dev mailing list