[zeromq-dev] timeout value in zeromq poll

Pieter Hintjens ph at imatix.com
Sat Dec 22 12:24:49 CET 2012


The Guide wasn't very clear on this area; I've updated it. There is
also a reference on the wiki: http://www.zeromq.org/docs:3-1-upgrade

-Pieter

On Sat, Dec 22, 2012 at 7:12 AM, Charles Remes <lists at chuckremes.com> wrote:
> In the 2.x series of libzmq, the units are in microseconds.
>
> In the 3.x series of libzmq, the units are in milliseconds.
>
> Make sure you are using the 3.x series for this test.
>
>
> On Dec 21, 2012, at 8:14 PM, Stefan de Konink <stefan at konink.de> wrote:
>
>> As per manpages;
>>
>> If none of the requested events have occurred on any zmq_pollitem_t
>> item, zmq_poll() shall wait timeout milliseconds for an event to occur
>> on any of the requested items.
>>
>> One thing for sure: if I enter 60000L the timeout is not 60s. It seems
>> to be that 60000000L comes closer to that. That sounds more like
>> microseconds to me (which might be considered overkill).
>>
>>
>> Is this a documentation bug, or an implementation bug?
>>
>> Stefan
>> _______________________________________________
>> 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



More information about the zeromq-dev mailing list