From 86c7628b01130559c53dffe1d799f2031a020918 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 12 Jul 2013 02:56:41 +0000 Subject: http: signal connection close during shutdown 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. --- exit.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-24-ge0c7