2
0
Fork 0

Disable keep-alive if server was stopped

This commit is contained in:
Stefan Bühler 2009-03-11 15:43:19 +01:00
parent 4f44b332c7
commit 764ce8335b
1 changed files with 1 additions and 1 deletions

View File

@ -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);