]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: backend: never try to attach to a mux having no more stream available
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 17:22:19 +0000 (18:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 18:06:43 +0000 (19:06 +0100)
commit2c7deddc06374700c967a7a1f72b913d0f0d9bb0
tree1bee4a20e37e1f0a234f469da7d9abea1dbfd6f1
parenta80dca85350bbc14dd450cdb26ebb84733d57e87
BUG/MEDIUM: backend: never try to attach to a mux having no more stream available

The code dealing with idle connections used to check the number of streams
available on the connection only to unlink the connection from the idle
list. But this still resulted in too many streams reusing the same connection
when they were already attached to it.

We must detect that there is no more room and refrain from using this
connection at all, and instead fall back to the no-reuse case. Ideally
we should try to search among other idle connections, but for a backport
let's stay safe.

This must be backported to 1.9.
src/backend.c