From 696a2d016f3bb97316246d02f1f75bc304229673 Mon Sep 17 00:00:00 2001 From: an-tao <20741618@qq.com> Date: Thu, 7 Jun 2018 17:30:03 +0800 Subject: [PATCH] connection should be closed by client --- lib/src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/HttpServer.cc b/lib/src/HttpServer.cc index 2c5760b1..e45e5967 100755 --- a/lib/src/HttpServer.cc +++ b/lib/src/HttpServer.cc @@ -88,7 +88,7 @@ void HttpServer::onMessage(const TcpConnectionPtr& conn, // LOG_INFO << "###:" << string(buf->peek(), buf->readableBytes()); if (!context->parseRequest(buf)) { conn->send("HTTP/1.1 400 Bad Request\r\n\r\n"); - conn->shutdown(); + //conn->shutdown(); } if (context->gotAll()) {