Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,14 @@ static void http_reject_request_cb(struct evhttp_request* req, void*)
}

/** Event dispatcher thread */
static bool ThreadHTTP(struct event_base* base)
static void ThreadHTTP(struct event_base* base)
{
util::ThreadRename("http");
SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER);
LogPrint(BCLog::HTTP, "Entering http event loop\n");
event_base_dispatch(base);
// Event loop will be interrupted by InterruptHTTPServer()
LogPrint(BCLog::HTTP, "Exited http event loop\n");
return event_base_got_break(base) == 0;
}

/** Bind HTTP server to specified addresses */
Expand Down