mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
asio: Stop acceptor on server::http2::stop
This commit is contained in:
@@ -175,7 +175,12 @@ void server::start_accept(tcp::acceptor &acceptor, serve_mux &mux) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void server::stop() { io_service_pool_.stop(); }
|
void server::stop() {
|
||||||
|
io_service_pool_.stop();
|
||||||
|
for (auto &acceptor : acceptors_) {
|
||||||
|
acceptor.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void server::join() { io_service_pool_.join(); }
|
void server::join() { io_service_pool_.join(); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user