mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Enable Http/1.1 persistence connection
This enables reusing existing TCP connection instead of opening a new connection for every request
This commit is contained in:
parent
cec68c3fd7
commit
f34dfca5e6
@ -101,12 +101,10 @@ void Connection::read()
|
||||
if (acceptsGzipEncoding(result.request.headers["accept-encoding"]))
|
||||
resp.headers[HEADER_CONTENT_ENCODING] = "gzip";
|
||||
|
||||
resp.headers[HEADER_CONNECTION] = "close";
|
||||
resp.headers[HEADER_CONNECTION] = "keep-alive";
|
||||
|
||||
sendResponse(resp);
|
||||
m_receivedData = m_receivedData.mid(result.frameSize);
|
||||
|
||||
m_socket->close();
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user