Skip to content

Commit e98a9ee

Browse files
committed
http: Remove unnecessary event_base_loopexit call
Let event base loop exit cleanly by processing all active and pending events. The call is no longer necessary because closing persistent connections is now properly handled.
1 parent 6b13580 commit e98a9ee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/httpserver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,6 @@ void StopHTTPServer()
470470
boundSockets.clear();
471471
if (eventBase) {
472472
LogPrint(BCLog::HTTP, "Waiting for HTTP event thread to exit\n");
473-
// Exit the event loop as soon as there are no active events.
474-
event_base_loopexit(eventBase, nullptr);
475473
// Give event loop a few seconds to exit (to send back last RPC responses), then break it
476474
// Before this was solved with event_base_loopexit, but that didn't work as expected in
477475
// at least libevent 2.0.21 and always introduced a delay. In libevent

0 commit comments

Comments
 (0)