[zeromq-dev] req-rep with max delay, in Ruby

Justin Cook jhcook at gmail.com
Fri Apr 20 13:11:55 CEST 2012


This sounds like a use for SIGALRM. In Python: 

http://docs.python.org/release/2.5.2/lib/node545.html 

-- 
Justin Cook


On Friday, 20 April 2012 at 08:53, Raphael Bauduin wrote:

> Hi,
> 
> I need a process to send a request to a server, and wait a maximum of
> (let's say) 300 milliseconds. If no reply comes in this time span, a
> default action should be taken.
> 
> Is using a poller the only solution to this? I'm using the ruby
> bindings (rbzmq), and didn't see any reference to pollers in the rdoc.
> 
> Thanks
> 
> Raph
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org (mailto:zeromq-dev at lists.zeromq.org)
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev






More information about the zeromq-dev mailing list