]> git.ipfire.org Git - thirdparty/squid.git/commit - src/client_side_reply.cc
Allow chunking the last HTTP response on a connection.
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 10 May 2016 23:06:48 +0000 (17:06 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 10 May 2016 23:06:48 +0000 (17:06 -0600)
commit95172eeabc696cfce37486f72f6e0de0fecb189d
tree5ce00ced08b34134631cebd64c19935e61458c1f
parent6efa2acfc42aed47db1034120c1fc1ccbf5aed31
Allow chunking the last HTTP response on a connection.

Squid should avoid signaling the message end by connection closure
because it hurts message integrity and sometimes performance. Squid
now chunks if:

  1. the response has a body;
  2. the client claims HTTP/1.1 support; and
  3. Squid is not going to send a Content-Length header.

AFAICT, Squid used to exclude to-be-closed connections from chunking
because chunking support was added (trunk r10781) specifically to
optimize persistent connection reuse and closing connections were
incorrectly excluded as a non-interesting/out-of-scope case. And/or
perhaps we did not realize the dangers of signaling the message end
by connection closure.
src/client_side_reply.cc