MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / InterruptHTTPServer

Function InterruptHTTPServer

src/httpserver.cpp:444–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void InterruptHTTPServer()
445{
446 LogPrint(BCLog::HTTP, "Interrupting HTTP server\n");
447 if (eventHTTP) {
448 // Unlisten sockets
449 for (evhttp_bound_socket *socket : boundSockets) {
450 evhttp_del_accept_socket(eventHTTP, socket);
451 }
452 // Reject requests on current connections
453 evhttp_set_gencb(eventHTTP, http_reject_request_cb, nullptr);
454 }
455 if (workQueue)
456 workQueue->Interrupt();
457}
458
459void StopHTTPServer()
460{

Callers 1

InterruptFunction · 0.85

Calls 1

InterruptMethod · 0.45

Tested by

no test coverage detected