MCPcopy Create free account
hub / github.com/ElementsProject/elements / InterruptHTTPServer

Function InterruptHTTPServer

src/httpserver.cpp:436–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void InterruptHTTPServer()
437{
438 LogPrint(BCLog::HTTP, "Interrupting HTTP server\n");
439 if (eventHTTP) {
440 // Reject requests on current connections
441 evhttp_set_gencb(eventHTTP, http_reject_request_cb, nullptr);
442 }
443 if (g_work_queue) {
444 g_work_queue->Interrupt();
445 }
446}
447
448void StopHTTPServer()
449{

Callers 1

InterruptFunction · 0.85

Calls 1

InterruptMethod · 0.45

Tested by

no test coverage detected