[zeromq-dev] Perl question: ZMQ + AnyEvent

2012-09-21 Thread Robert Olson
I'm working on a Majordomo implementation in Perl using the ZeroMQ-0.21 wrapper and have a mystery concerning AnyEvent support with it. I'm using AE to drive the broker (using AE I/O watchers for incoming traffic on the worker and client sockets, and setting up AE timers to handle heartbeats an

Re: [zeromq-dev] Perl question: ZMQ + AnyEvent

2012-09-21 Thread Robert Olson
On Sep 21, 2012, at 2:30 PM, Robert Olson wrote: > However, in my client, if I set up AnyEvent to wait for the reply from the > broker I am never notified. The client works perfectly if I use a synchronous > receive on the socket. Interesting: in the async code if I issue a nonblocking recv() be

Re: [zeromq-dev] Perl question: ZMQ + AnyEvent

2012-09-21 Thread Pedro Melo
Hi, On Fri, Sep 21, 2012 at 9:11 PM, Robert Olson wrote: > On Sep 21, 2012, at 2:30 PM, Robert Olson wrote: >> However, in my client, if I set up AnyEvent to wait for the reply from the >> broker I am never notified. The client works perfectly if I use a >> synchronous receive on the socket. >

Re: [zeromq-dev] Perl question: ZMQ + AnyEvent

2012-09-21 Thread Robert Olson
On Sep 21, 2012, at 5:31 PM, Pedro Melo wrote: > Hi, > > On Fri, Sep 21, 2012 at 9:11 PM, Robert Olson wrote: >> On Sep 21, 2012, at 2:30 PM, Robert Olson wrote: >>> However, in my client, if I set up AnyEvent to wait for the reply from the >>> broker I am never notified. The client works perf

Re: [zeromq-dev] Perl question: ZMQ + AnyEvent

2012-09-21 Thread Daisuke Maki
Hi, I'm the maintainer of perl ZMQ modules. I'm away fron my computer atm, so can only guess, but does it work if you put a AnyEvent::Util::fh_nonblocking($fd) before creating the IO watcher? and yes, for new code you should be using ZMQ::LibMQ2. 2012年9月22日土曜日 Robert Olson ol...@mcs.anl.gov: >