RE: keepalive/redirect bug in Squid 2.0/PATCH2

From: Nottingham, Mark (Australia) <mark_nottingham@dont-contact.us>
Date: Wed, 20 Jan 1999 10:25:55 +1100

* Proxy-Connection is an invalid reponse header in the HTTP 1.1. 1.0
doesn't specify it either. If it's trying to close the connection, it
isn't doing it, and it isn't even telling the client about it correctly.

* for me, the connection hangs for about 8 seconds, and then closes
itself.

It appears that Squid is attempting to keep the connection open for
persistance, 1.1 style; however, this is a 1.0 request, and the RFC
states:

[8.1.2.1]
[...] Clients and servers SHOULD NOT assume that a persistent connection
is maintained for HTTP versions less than 1.1 unless it is explicitly
signaled.

[8.1.4]
It is especially important that proxies correctly implement the
properties of the Connection header field as specified in section 14.10.

The proxy server MUST signal persistent connections separately with its
clients and the origin servers (or other proxy servers) that it connects
to. Each persistent connection applies to only one transport link.

A proxy server MUST NOT establish a HTTP/1.1 persistent connection with
an HTTP/1.0 client [...]

[19.6.2] is also relavent.

While this may indeed be a strange interaction between WN and Squid, it
is Squid's responsibility to see that the right thing is done, IMHO.
This isn't really my area, but it's pretty obvious that something isn't
happening correctly.

> -----Original Message-----
> From: Peter van Dijk [mailto:peter-squid@attic.vuurwerk.nl]
> Sent: Wednesday, January 20, 1999 9:30 AM
> To: squid-users; WN mailinglist
> Subject: keepalive/redirect bug in Squid 2.0/PATCH2
>
>
> Compare:
> ---
> $ nc proxy 3128
> GET http://www.vuurwerk.nl/vreemdeberichten HTTP/1.0
>
> HTTP/1.0 301 Moved Permanently
> Server: WN/2.0.5
> Date: Tue, 19 Jan 1999 22:26:22 GMT
> Content-Type: text/html
> Location: http://www.vuurwerk.nl/vreemdeberichten/
> Age: 0
> X-Cache: MISS from zopie.attic.vuurwerk.nl
> Proxy-Connection: close
>
>
> [connection stays open here]
>
> and:
> ---
> $ nc www.vuurwerk.nl 80
> GET /vreemdeberichten HTTP/1.0
> Host: www.vuurwerk.nl
>
> HTTP/1.1 301 Moved Permanently
> Server: WN/2.0.5
> Date: Tue, 19 Jan 1999 22:26:54 GMT
> Content-type: text/html
> Location: http://www.vuurwerk.nl/vreemdeberichten/
>
>
> [connection gets closed automatically and immediately here]
> ---
>
> Netscape won't mind here. Lynx will choke and wait for the
> connection to timeout,
> in the first case. I don't know where the bug is exactly, it
> could be because
> www.vuurwerk.nl actually does keepalive for redirects but not
> really for
> normal requests.
>
> Greetz, Peter.
> --
> <squeezer> AND I AM GONNA KILL MIKE |
> Peter van Dijk
> <squeezer> hardbeat, als je nog nuchter bent: |
> peter@attic.vuurwerk.nl
> <squeezer> @date = localtime(time); | realtime
> security d00d
> <squeezer> $date[5] += 2000 if ($date[5] < 37); |
> <squeezer> $date[5] += 1900 if ($date[5] < 99); | * blah *
>
Received on Tue Jan 19 1999 - 16:14:31 MST

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