BUG in redirection-handling code

From: Chemolli Francesco (USI) <ChemolliF@dont-contact.us>
Date: Wed, 18 Oct 2000 13:45:16 +0200

Subject: Host redirect v2 fails with IE5 via Squid 2.3 [571]
This bug was reported to the Roxen WebServer (www.roxen.com)
bug-management system.
They are going to work around it, but I believe it would
be a good idea to check whether squid is at fault.

------------------------------------------------------------

 Reporter: pollcities@yahoo.com
 URL: http://community.roxen.com/crunch/show_bug.cgi?id=571

This is an obscure bug that only manifests with the combination
(Roxen2.1's host redirect + squid web proxy + IE5).

Roxen does not return a "Content-length: xxx" HTTP header when
asked to redirect a host (e.g. "default http://foo.com/") using
the "Host Redirect v2" module. [*]

Squid, upon receiving roxen's response, returns that to the
browser, but does NOT close the connection to the browser, even
though a "Connection: close" response is given to the browser.
This connection will eventually time out.

IE5, the browser, waits for the proxy to close the connection
before willing to handle the redirection. (Netscape 4 and Mozilla
5 closes the connection after receiving "Connection: close"). IE5
shows blank page (or is it an error? forgot.) after squid->IE5
times out.

Versions used
Roxen 2.1.135, and later the latest CVS version
  (hostredirect.pike CVS version 1.23)
  Possibly most other Roxen versions affected as well.

squid-2.3.STABLE2

Internet Explorer 5

Proposed workaround:
hostredirect adds an additional header "Content-length: 0" to
the http response.

(Someone wanna send a bug report to Squid and IE5?)
--------------------------------------------------------------

[*] The "host redirect" module is a Roxen module which
sends an HTTP redirection to a request depending on the contents
of the Host: HTTP header.

-- 
	/kinkie
Received on Wed Oct 18 2000 - 05:46:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:50 MST