#289 timeout_process

open
nobody
5
2014-08-20
2012-10-15
balanceren
No

timeout_process
......
while ((ev = min_heap_top(&base->timeheap))) {
if (evutil_timercmp(&ev->ev_timeout, &now, >))
break;
ev->ev_flags |= EVLIST_TIMEOUT; //add

Discussion

  • Nick Mathewson
    Nick Mathewson
    2012-10-16

    Why?

    EVLIST_TIMEOUT should be set if an event is already in the minheap. If ev does not have EVLIST_TIMEOUT set, then there is a bug somewhere else.