[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 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,

Evan Jones

--
Evan Jones
http://evanjones.ca/

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.