[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>
Mon, 15 Oct 2007 07:32:19 +0000 (09:32 +0200)
commit6e4261ee2f6e2704eba05f9aabcb6b86f26ad5a7
treed44e78382e68dfb43c3942e8865d53db3c332525
parent33a89a28035c49804983620da4b3982f82845555
[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