]> git.kaiwu.me - haproxy.git/commit
[MEDIUM] make default_backend work in TCP mode too
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Nov 2007 13:28:39 +0000 (14:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Nov 2007 13:31:42 +0000 (14:31 +0100)
commit6f720495f1ba77d32f4302f8ff1f8ea35c7f857c
treedc94c4a02925f6d46896962ce2e0a078a429b4e1
parent21e66d5f2d44c05198bc55ef5c2768d9fa2b8d80
[MEDIUM] make default_backend work in TCP mode too

The default_backend did not work in TCP mode since there was no
header state to assign the backend. This causes much trouble when
configs are created by copy-paste.

The solution was to fix the way the backend is assigned upon accept().
A wrong contimeout assignment was fixed too.
src/client.c
tests/test-retries.cfg