]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: dispatch and http_proxy modes were broken for a long time
authorWilly Tarreau <w@1wt.eu>
Thu, 20 May 2010 09:49:03 +0000 (11:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 May 2010 06:56:02 +0000 (08:56 +0200)
commitd45b3d5aff4b4c7c42dc4fd4cc69804566810b53
treef3cca7f0819eb7d0e7aaec9968686d6adf28383e
parent21475e3215154de69b5c3f8d176d73381c7d4fc8
[BUG] http: dispatch and http_proxy modes were broken for a long time

Both dispatch and http_proxy modes were broken since 1.4-dev5 when
the adjustment of server health based on response codes was introduced.
In fact, in these modes, s->srv == NULL. The result is a plain segfault.
It should have been noted critical, but the fact that it remained 6
months without being noticed indicates that almost nobody uses these
modes anymore. Also, the crash is immediate upon first request.

Further versions should not be affected anymore since it's planned to
have a dummy server instead of these annoying NULL pointers.
src/proto_http.c