]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: continue to emit 503 on keep-alive to different server
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Feb 2014 17:26:30 +0000 (18:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Feb 2014 17:26:30 +0000 (18:26 +0100)
commit36346247ac8ded5cdaf2e0beba519246da70b123
treef62bcad000a2d6e18ca2f7fdd9631ecf665861c5
parent2481d167efd15708417a1ba68b2de35468a67358
BUG/MEDIUM: http: continue to emit 503 on keep-alive to different server

Finn Arne Gangstad reported that commit 6b726adb35 ("MEDIUM: http: do
not report connection errors for second and further requests") breaks
support for serving static files by abusing the errorfile 503 statement.

Indeed, a second request over a connection sent to any server or backend
returning 503 would silently be dropped.

The proper solution consists in adding a flag on the session indicating
that the server connection was reused, and to only avoid the error code
in this case.
include/types/session.h
src/backend.c
src/proto_http.c