[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Infinity loop



I'm using libevent 1.4.12. Sometimes I end up in an infinity loop in event.c:timeout_process(). The while loop is not able to exit and "pops" the same ev object from the base->timeheap. To me it seems that the ev object is deleted and then reinserted in event_active in an infinite loop.


	while ((ev = min_heap_top(&base->timeheap))) {
		if (evutil_timercmp(&ev->ev_timeout, &now, >))
			break;

		/* delete this event from the I/O queues */
		event_del(ev);

		event_debug(("timeout_process: call %p",
			 ev->ev_callback));
		event_active(ev, EV_TIMEOUT, 1);
	}

Has anyone else experienced something like this? What may be the cause for this?


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