Disable keep-alive if server was stopped

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent 4f44b332c7
commit 764ce8335b
  1. 2
      src/connection.c

@ -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…
Cancel
Save