Timeout with persistent connections
Kevin Ryde
user42 at zip.com.au
Sat Aug 6 02:23:17 CEST 2011
schmorp at schmorp.de (Marc Lehmann) writes:
>
> Basically, you stop the time for an extended period
> without telling the event loop (which still thinks it is 6 seconds past
> when new timeouts are created). Since 6 seconds is long enough for a
> timeout to occur, one does occur immediately.
If after a lag there's both timeout and incoming data ready, does it
prefer to read the data (which would reset or discard the timer)?
I suppose usually a timeout is long and a lag is short, so it wouldn't
matter.
More information about the anyevent
mailing list