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

Function InterruptHTTPServer

src/rpc/core/httpserver.cpp:456–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void InterruptHTTPServer() {
457 LogPrint(BCLog::RPC, "Interrupting HTTP server\n");
458 if (eventHTTP) {
459 // Reject requests on current connections
460 evhttp_set_gencb(eventHTTP, http_reject_request_cb, nullptr);
461 }
462 if (workQueue) workQueue->Interrupt();
463}
464
465void StopHTTPServer() {
466 LogPrint(BCLog::RPC, "Stopping HTTP server\n");

Callers 1

InterruptRPCServerFunction · 0.85

Calls 1

InterruptMethod · 0.80

Tested by

no test coverage detected