Re: i28 proposed replacement text

On tor, 2008-06-05 at 05:01 -0400, Yves Lafon wrote:

> Ok, so if the proxy gets a reply using connection closure to signal the 
> end of the reply, should the proxy always treat this as an incomplete 
> transaction ?

No, only if the length disagrees with Content-Length or if chunked
encoding was not properly terminated.

A message without content-lenght or chunked encoding is validly
terminated by closing the connection.

Servers who require the client to ALWAYS be able to detect truncated
messages SHOULD use Content-Length. It's the only transmission method
where the message format guarantees possible end-to-end detection of
truncation (ignoring setups with non-transparent proxies perforing
content encoding in the mix..). Yes, this rules out using
Transfer-Encoding. Additionally it's wise to use Content-MD5 for real
integrity checks.

Servers only needing this at best effort level is free to use
transfer-encoding, any of the defined ones or combinations, but be aware
that the transfer encoding MAY be removed before the response reaches
the recipient. They SHOULD NOT delimit messages by closing the
connection.

Regards
Henrik

Received on Thursday, 5 June 2008 13:56:36 UTC