Disable keep-alive if server was stopped
This commit is contained in:
parent
4f44b332c7
commit
764ce8335b
|
@ -61,7 +61,7 @@ static void connection_request_done(connection *con) {
|
|||
|
||||
plugins_handle_close(con);
|
||||
|
||||
if (con->keep_alive) {
|
||||
if (con->keep_alive && g_atomic_int_get(&con->srv->state) == SERVER_RUNNING) {
|
||||
connection_reset_keep_alive(con);
|
||||
} else {
|
||||
worker_con_put(con);
|
||||
|
|
Loading…
Reference in New Issue