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

Function InterruptHTTPServer

src/httpserver.cpp:1266–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264}
1265
1266void InterruptHTTPServer()
1267{
1268 LogDebug(BCLog::HTTP, "Interrupting HTTP server");
1269 if (g_http_server) {
1270 // Reject all new requests
1271 g_http_server->SetRequestHandler(RejectRequest);
1272 }
1273
1274 // Interrupt pool after disabling requests
1275 g_threadpool_http.Interrupt();
1276}
1277
1278void StopHTTPServer()
1279{

Callers 1

InterruptFunction · 0.85

Calls 1

InterruptMethod · 0.45

Tested by

no test coverage detected