]> git.kaiwu.me - haproxy.git/commit
[MAJOR] timeouts and retries could be ignored when switching backend
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Sep 2007 16:36:05 +0000 (18:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Sep 2007 16:36:05 +0000 (18:36 +0200)
commit155e6584df48dcd10d28a67585834f034b383641
tree647a33ec49c0016757d709aa779c3e9422371b6d
parentb8316360cb3ddae926c4afc364870b4964c1f72b
[MAJOR] timeouts and retries could be ignored when switching backend

When switching from a frontend to a backend, the "retries" parameter
was not kept, resulting in the impossibility to reconnect after the
first connection failure. This problem was reported and analyzed by
Krzysztof Oledzki.

While fixing the code, it appeared that some of the backend's timeouts
were not updated in the session when using "use_backend" or "default_backend".
It seems this had no impact but just in case, it's better to set them as
they should have been.
src/proto_http.c