RE : RE : mod_proxy and HTTP/1.1 request

RE : RE : mod_proxy and HTTP/1.1 request

am 13.03.2002 12:12:59 von Gael Seroul

I tried lots of combinations (with or without proxy, in HTTP 1.1 or
1.0).
The communication beetween client and proxy is HTTP/1.1 (with
Proxy-Connection: Keep-Alive).
The communication beetween proxy and web server is HTTP/1.0 (with
Connection: Close).
It seems to be in line with RFC2616.
It is just a shame that your original patch worked on both side in
HTTP/1.1 and some code have got lost somewhere. Maybe it could cause
problems under certain cases ?

Regards,
Gael

> -----Message d'origine-----
> De : minfrin [mailto:minfrin] De la part de Graham Leggett
> Envoy=E9 : vendredi 8 mars 2002 17:49
> =C0 : modproxy-dev@apache.org
> Objet : Re: RE : mod_proxy and HTTP/1.1 request
>=20
>=20
> Gael Seroul wrote:
>=20
> > I don't think the problem is just a version string error. =20
> The traffic=20
> > I saw beetween apache proxy and web server was in HTTP/1.0 (The=20
> > header was containing the Content-Length, no chunk appeared...) The=20
> > communication beetween apache proxy and web server is really in=20
> > HTTP/1.0.
>=20
> Chunking is optional in RFC2616 - if the proxy receives=20
> content with a content-length, it won't chunk the data.
>=20
> If you could send a specific instance of where proxy violates=20
> RFC2616 I would appreciate it, because then I can fix it. To=20
> date the only reports so far are "it looks like HTTP/1.0",=20
> which is far too vague to be useful.
>=20
> Regards,
> Graham
> --=20
> -----------------------------------------
> minfrin@sharp.fm "There's a moon
> over Bourbon Street
> tonight..."
>=20

Re: RE : RE : mod_proxy and HTTP/1.1 request

am 13.03.2002 12:55:14 von Graham Leggett

This is a cryptographically signed message in MIME format.

--------------ms4427B200EF1BF9990ED32F82
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Gael Seroul wrote:

> I tried lots of combinations (with or without proxy, in HTTP 1.1 or
> 1.0).
> The communication beetween client and proxy is HTTP/1.1 (with
> Proxy-Connection: Keep-Alive).
> The communication beetween proxy and web server is HTTP/1.0 (with
> Connection: Close).
> It seems to be in line with RFC2616.

Connection: close is HTTP/1.1 protocol, not HTTP/1.0. Keepalives are not
supported in the v1.3 patch (they are in the 2.0 proxy) and are
negotiated "no" in the standard 1.1 way.

> It is just a shame that your original patch worked on both side in
> HTTP/1.1 and some code have got lost somewhere. Maybe it could cause
> problems under certain cases ?

What code were you testing? The current head of CVS (what will become
v1.3.24) has all the fixes in it, including the HTTP/1.1 to the backend.
The v1.3.23 code has got a whole bunch of bugs in it.

I am going to have to check this thoroughly - I have absolutely no idea
how it got changed back, as all traces of HTTP/1.0 behaviour was removed
when I wrote the patch. I'm a bit swamped with work right now, so I
cannot look at it in the next few days, but hopefully I will get to it
by next week.

Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."
--------------ms4427B200EF1BF9990ED32F82
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIIHyAYJKoZIhvcNAQcCoIIHuTCCB7UCAQExCzAJBgUrDgMCGgUAMAsGCSqG SIb3DQEHAaCC
BcYwggKVMIIB/qADAgECAgMEyOwwDQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNV BAYTAlpBMRUw
EwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0G A1UEChMGVGhh
d3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMf UGVyc29uYWwg
RnJlZW1haWwgUlNBIDIwMDAuOC4zMDAeFw0wMTA1MTEwMDE3NDZaFw0wMjA1 MTEwMDE3NDZa
MF0xEDAOBgNVBAQTB0xlZ2dldHQxDzANBgNVBCoTBkdyYWhhbTEXMBUGA1UE AxMOR3JhaGFt
IExlZ2dldHQxHzAdBgkqhkiG9w0BCQEWEG1pbmZyaW5Ac2hhcnAuZm0wgZ8w DQYJKoZIhvcN
AQEBBQADgY0AMIGJAoGBALX2zJvQ/9l+sCEpkfMNNwtnMcF8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Dzg uQtH9D6liw==
--------------ms4427B200EF1BF9990ED32F82--

Re: RE : RE : mod_proxy and HTTP/1.1 request

am 13.03.2002 23:01:37 von Chuck Murcko

On Wednesday, March 13, 2002, at 06:55 AM, Graham Leggett wrote:

> Gael Seroul wrote:
>
>> I tried lots of combinations (with or without proxy, in HTTP 1.1 or
>> 1.0).
>> The communication beetween client and proxy is HTTP/1.1 (with
>> Proxy-Connection: Keep-Alive).
>> The communication beetween proxy and web server is HTTP/1.0 (with
>> Connection: Close).
>> It seems to be in line with RFC2616.
>
> Connection: close is HTTP/1.1 protocol, not HTTP/1.0. Keepalives are not
> supported in the v1.3 patch (they are in the 2.0 proxy) and are
> negotiated "no" in the standard 1.1 way.
>
>> It is just a shame that your original patch worked on both side in
>> HTTP/1.1 and some code have got lost somewhere. Maybe it could cause
>> problems under certain cases ?
>
> What code were you testing? The current head of CVS (what will become
> v1.3.24) has all the fixes in it, including the HTTP/1.1 to the backend.
> The v1.3.23 code has got a whole bunch of bugs in it.
>
> I am going to have to check this thoroughly - I have absolutely no idea
> how it got changed back, as all traces of HTTP/1.0 behaviour was removed
> when I wrote the patch. I'm a bit swamped with work right now, so I
> cannot look at it in the next few days, but hopefully I will get to it
> by next week.
>

OK, the one line you changed recently was untouched in the patch to
1.3.19, so it happened sometime before that.

Ah, no, it looks like this might have been untouched since day 1,
looking at your patch to 1.3.12 from April 7 2000. Was there a revised
version of this patch?

Chuck