diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-12 02:56:41 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-12 06:44:48 +0000 |
commit | 86c7628b01130559c53dffe1d799f2031a020918 (patch) | |
tree | 8a008654a6d8fdbe6c7e9fe371b3325135255c11 | |
parent | 0e5d6c6f4b28a75853d1020f07e493632031a054 (diff) | |
download | cmogstored-86c7628b01130559c53dffe1d799f2031a020918.tar.gz |
While we always properly disconnected clients during shutdown, we explicitly set "Connection: close" now to inform clients of our pending shutdown. This avoids potentially confusing clients when we disconnect them as there may still be a race condition where we shut down a client while their request packets are in-flight.
-rw-r--r-- | exit.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ static bool svc_quit_i(void *svcptr, void *ignored) { struct mog_svc *svc = svcptr; + svc->persist_client = 0; mog_svc_dev_quit_prepare(svc); acceptor_quit(&svc->mgmt_mfd); acceptor_quit(&svc->http_mfd); |