]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: add a new transaction flags indicating if we know the transfer length
authorWilly Tarreau <w@1wt.eu>
Sat, 26 Dec 2009 14:34:26 +0000 (15:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 Dec 2009 15:29:04 +0000 (16:29 +0100)
commite8e785bb850c12053538325c4c96cb774105d988
tree82875297a8327f27395cde0a1bbc45c2a6f3f9f5
parent115acb975521ae2e548a19840b77ef32ffaab98a
[MEDIUM] http: add a new transaction flags indicating if we know the transfer length

It's not enough to know if the connection will be in CLOSE or TUNNEL mode,
we still need to know whether we want to read a full message to a known
length or read it till the end just as in TUNNEL mode. Some updates to the
RFC clarify slightly better the corner cases, in particular for the case
where a non-chunked encoding is used last.

Now we also take care of adding a proper "connection: close" to messages
whose size could not be determined.
include/types/proto_http.h
src/proto_http.c