MCPcopy Create free account
hub / github.com/LUX-Core/lux / InterruptHTTPServer

Function InterruptHTTPServer

src/httpserver.cpp:443–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

InterruptFunction · 0.85

Calls 2

LogPrintFunction · 0.85
InterruptMethod · 0.80

Tested by

no test coverage detected