[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Does EV_PERSIST with a timeout work differently on 1.x and 2.x versions?
On Mon, Dec 6, 2010 at 8:48 PM, Evan Jones <evanj@xxxxxxx> wrote:
> On Dec 5, 2010, at 21:13 , Clint Webb wrote:
>>
>> After the Timeout event was fired, it seemed as though the event was
>> no longer queued, even though EV_PERSIST was specified.
>>
>> Is this different behaviour expected?
>
> I think the answer is yes. From the "whatsnew-2.0.txt" file:
>
>> 2.6. Timeouts and persistent events work together.
>>
>> Previously, it wasn't useful to set a timeout on a persistent event:
>> the timeout would trigger once, and never again. This is not what
>> applications tend to want. Instead, applications tend to want every
>> triggering of the event to re-set the timeout.
>
> Hope this helps,
Ahh, excellent. Thankyou.
Dont know how I missed reading that file.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.