]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stconn: Be sure to always be able to unblock a SC that needs room
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 May 2023 09:44:56 +0000 (11:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 May 2023 09:53:28 +0000 (11:53 +0200)
commite59f7583ee9952a101f0430992add3fdff4db2ae
tree4a414f21a4987dd9426b3e9f329912466af0bf25
parentd6f0557deb671f8a4e5228ac7e107916a555c436
MEDIUM: stconn: Be sure to always be able to unblock a SC that needs room

When sc_need_room() is called, the caller cannot request more free space
than a minimum value to be sure it is always possible to unblock it. it is a
safety guard to not freeze any SC on NEED_ROOM condition. At worse it will
lead to some wakeups un excess at the edge.

To keep things simple, the following minimum is used:

  (global.tune.bufsize - global.tune.maxrewrite - sizeof(struct htx))
include/haproxy/stconn.h