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
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
On Apr 20, 2012, at 2:53 AM, 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
If the binding is able to use 2.2.0, you can set the recvTimeOut socket option
instead of using the poller.
Joshua
On Apr 20, 2012, at 3:53 AM, 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
https://github.com/methodmissing/rbczmq/blob/master/test/test_socket.rb#L403-409(
values are in milliseconds )
On Fri, Apr 20, 2012 at 1:51 PM, Joshua Foster jhaw...@gmail.com wrote:
If the binding is able to use 2.2.0, you can set the recvTimeOut socket
option instead of using the poller.
On Apr 20, 2012, at 7:51 AM, Joshua Foster wrote:
If the binding is able to use 2.2.0, you can set the recvTimeOut socket
option instead of using the poller.
So far none of the Ruby bindings support 2.2.0. :(
I'll try and stub in support early next week unless someone beats me to it and
On Fri, Apr 20, 2012 at 3:12 PM, Chuck Remes li...@chuckremes.com wrote:
On Apr 20, 2012, at 7:51 AM, Joshua Foster wrote:
If the binding is able to use 2.2.0, you can set the recvTimeOut socket
option instead of using the poller.
So far none of the Ruby bindings support 2.2.0. :(
I'll