mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Make num_accept 0 on graceful shutdown
Make num_accept unlimited so that we can accept all pending connections waiting in listen queue.
This commit is contained in:
@@ -426,6 +426,10 @@ void graceful_shutdown_signal_cb(struct ev_loop *loop, ev_signal *w,
|
||||
// After disabling accepting new connection, disptach incoming
|
||||
// connection in backlog.
|
||||
|
||||
// Make num_accept unlimited so that we can accept all connections
|
||||
// waiting in listen queue.
|
||||
mod_config()->num_accept = 0;
|
||||
|
||||
conn_handler->accept_pending_connection();
|
||||
|
||||
conn_handler->graceful_shutdown_worker();
|
||||
|
||||
Reference in New Issue
Block a user