[zeromq-dev] req-rep with max delay, in Ruby
Lourens Naudé
lourens at methodmissing.com
Fri Apr 20 14:58:28 CEST 2012
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 <jhawk28 at 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.
>
> 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 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
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120420/4e349a03/attachment.htm>
More information about the zeromq-dev
mailing list