| 405 | } |
| 406 | |
| 407 | bool UpdateHTTPServerLogging(bool enable) { |
| 408 | #if LIBEVENT_VERSION_NUMBER >= 0x02010100 |
| 409 | if (enable) { |
| 410 | event_enable_debug_logging(EVENT_DBG_ALL); |
| 411 | } else { |
| 412 | event_enable_debug_logging(EVENT_DBG_NONE); |
| 413 | } |
| 414 | return true; |
| 415 | #else |
| 416 | // Can't update libevent logging if version < 02010100 |
| 417 | return false; |
| 418 | #endif |
| 419 | } |
| 420 | |
| 421 | static std::thread g_thread_http; |
| 422 | static std::vector<std::thread> g_thread_http_workers; |
no outgoing calls
no test coverage detected