]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: Be smarter about deciding to reuse the last server.
authorOlivier Houchard <cognet@ci0.org>
Sat, 1 Dec 2018 13:40:40 +0000 (14:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 14:45:30 +0000 (15:45 +0100)
commitba4fff5fd2955553467d50ef5db704d7463d9a3d
treeb21d8e01e33ebd8bc6324f474d541c8213c2bdff
parent985f139aa23f937c94efcdeaf924c80edfade4df
MEDIUM: server: Be smarter about deciding to reuse the last server.

Instead of parsing all the available connections owned by the session
each time we choose a server, even if prefer-last-server is not set,
just do it if prefer-last-server is used, and check if the server is usable,
before checking the connections.
src/backend.c