| 434 | } |
| 435 | |
| 436 | void InterruptHTTPServer() |
| 437 | { |
| 438 | LogPrint(BCLog::HTTP, "Interrupting HTTP server\n"); |
| 439 | if (eventHTTP) { |
| 440 | // Reject requests on current connections |
| 441 | evhttp_set_gencb(eventHTTP, http_reject_request_cb, nullptr); |
| 442 | } |
| 443 | if (g_work_queue) { |
| 444 | g_work_queue->Interrupt(); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | void StopHTTPServer() |
| 449 | { |