| 454 | } |
| 455 | |
| 456 | void 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 | |
| 465 | void StopHTTPServer() { |
| 466 | LogPrint(BCLog::RPC, "Stopping HTTP server\n"); |
no test coverage detected