From 090f3817584b6b0a25f661cfe73b61fb190136e2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 7 Aug 2018 18:31:47 +0100 Subject: m_httpd: close the HTTP connection after serving a request. We always send "Connection: Close" so this is the right behaviour according to section 8.1 of RFC 2616. Closes #1507. --- src/modules/m_httpd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/m_httpd.cpp') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 2b079c6ff..cb17a0383 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -336,6 +336,7 @@ class HttpServerSocket : public BufferedSocket { SendHeaders(n->str().length(), response, *hheaders); WriteData(n->str()); + Close(); } }; -- cgit v1.2.3