Remove connection keep-alive code
This commit is contained in:
@ -834,8 +834,6 @@ namespace Tesses::Framework::Http
|
||||
void HttpServer::Process(Stream& strm, IHttpServer& server, std::string ip, uint16_t port, bool encrypted)
|
||||
{
|
||||
|
||||
while(true)
|
||||
{
|
||||
BufferedStream bStrm(strm);
|
||||
StreamReader reader(bStrm);
|
||||
ServerContext ctx(&bStrm);
|
||||
@ -919,19 +917,7 @@ namespace Tesses::Framework::Http
|
||||
|
||||
if(ctx.version != "HTTP/1.1" ) return;
|
||||
|
||||
std::string connection;
|
||||
if(ctx.requestHeaders.TryGetFirst("Connection", connection))
|
||||
{
|
||||
if(connection != "keep-alive") return;
|
||||
}
|
||||
|
||||
if(ctx.responseHeaders.TryGetFirst("Connection", connection))
|
||||
{
|
||||
if(connection != "keep-alive") return;
|
||||
}
|
||||
|
||||
if(bStrm.EndOfStream()) return;
|
||||
}
|
||||
}
|
||||
|
||||
WebSocketConnection::~WebSocketConnection()
|
||||
|
||||
Reference in New Issue
Block a user