[PATCH] send HTTP/1.1 requests to HTTP servers for selected requests

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Sun, 21 Feb 2010 20:37:29 +0200

There are broken servers out there that insist on receiving HTTP/1.1
requests.

This patch adds a new force_http_1p1_request acl-driven option to
squid.conf.

When the HTTP request matches the specified ACL, Squid uses "HTTP/1.1"
HTTP-Version string in the request sent to the server. The affected
requests have "HTTP/1.1" HTTP-Version token but are not
altered in any other way.

The option apply after the request adaptation (if any)

Please take care to the "#if WHEN_SQUID_IS_HTTP1_1" block in
HttpMsg.cc file which was disabled. This block allow squid to consider
a connection to the HTTP server as persistent in the case the
"Connection: close" header does not exist in the case of HTTP 1.1 replies.

I did not found any problem with this but maybe I am loosing something.

This is a Measurement Factory project.

Regards,
      Christos

Received on Sun Feb 21 2010 - 18:37:34 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 22 2010 - 12:00:07 MST