@brief stop
| 514 | |
| 515 | ///@brief stop |
| 516 | void WebServer::stop() { |
| 517 | running = false; |
| 518 | ioc.stop(); |
| 519 | |
| 520 | // Wait for all I/O threads to finish |
| 521 | for (auto& thread : io_threads_) { |
| 522 | if (thread.joinable()) { |
| 523 | thread.join(); |
| 524 | } |
| 525 | } |
| 526 | io_threads_.clear(); |
| 527 | } |
| 528 | |
| 529 | ///@brief register active request |
| 530 | ///@param request_id the request ID |
no test coverage detected