]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: verify the request's version before dropping connection: keep...
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Feb 2019 14:35:38 +0000 (15:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Feb 2019 14:38:22 +0000 (15:38 +0100)
commit7701cad4449f2a84603c296c7fa3bf1e23c9fcb9
tree06da4573f2d056e847d6d65ecf7760a5073f45ef
parentf959d0809ead017555ef5db60ef081a7fd87ca20
BUG/MINOR: mux-h1: verify the request's version before dropping connection: keep-alive

The mux h1 properly avoid to set "connection: keep-alive" when the response
is in HTTP/1.1 but it forgot to check the request's version. Thus when the
client requests using HTTP/1.0 and connection: keep-alive (like ab does),
the response is in 1.1 with no keep-alive and ab waits for the close without
checking for the content-length. Response headers actually depend on the
recipient, thus on both request and response's version.

This patch must be backported to 1.9.
src/mux_h1.c