]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: backend: without ->connect(), allow to pick another thread's connection
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Nov 2023 09:53:36 +0000 (10:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Nov 2023 17:13:04 +0000 (18:13 +0100)
commit662565ddb492c259cfdaa2d9489a23135a8e93c0
tree53390c93a5cfdc8659185c02dc241c69cd0e1547
parentf592a0d5dd31e951fe8bcd4fd7d1d82b6c3ca708
MINOR: backend: without ->connect(), allow to pick another thread's connection

If less connections than threads are established on a reverse-http gateway
and these servers have a non-nul pool-min-conn, then conn_backend_get()
will refrain from picking available connections from other threads. But
this makes no sense for protocols for which there is no ->connect(),
since there's no way the current thread will manage to establish its own
connection. For such situations we should always accept to use another
thread's connection. That's precisely what this patch does.
src/backend.c