[zeromq-dev] differences in polling between device and non device fd's

john skaller skaller at users.sourceforge.net
Fri Feb 17 00:59:47 CET 2012


On 17/02/2012, at 7:41 AM, snacktime wrote:

> I'm using a jruby gem that has it's own reactor, and monitors zeromq
> file descriptors so you can send messages to the reactor via zeromq.
> I'm running into a strange issue where the reactor is not getting
> events from the fd.  It gets a couple then no more.  This happens to
> me when using the queue device, but not when I just use req/rep or
> push/pull.  Is there anything different about how devices monitor file
> descriptors that could cause issues for external code that is
> monitoring them?

The queue device is using zmq_poll, which in turn is calling
select or whatever. If you're also polling the same files
it can't work. It should work if you're polling different ones.
HTH 


--
john skaller
skaller at users.sourceforge.net







More information about the zeromq-dev mailing list