about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-12 02:56:41 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-12 06:44:48 +0000
commit86c7628b01130559c53dffe1d799f2031a020918 (patch)
tree8a008654a6d8fdbe6c7e9fe371b3325135255c11
parent0e5d6c6f4b28a75853d1020f07e493632031a054 (diff)
downloadcmogstored-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exit.c b/exit.c
index ec6f4d5..f5194a3 100644
--- a/exit.c
+++ b/exit.c
@@ -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);