-
Committer:
Biping Meng
-
Date:
2009-07-21 14:23:54 UTC
-
mto:
(1115.3.13 captain)
-
mto:
This revision was merged to the branch mainline in
revision
1122.
-
Revision ID:
mengbiping@gmail.com-20090721142354-gy420z0uwsopehs5
If libevent_add_session is called when some thread is executing libevent_add_session_callback, newly connected sessions are being processed in *this* event loop. But new characters writen into the event pipe will not be cleared in this batch. So we choose to clear the pending events at the end of libevent_add_session routine.