]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Update stream expiration date on blocked sends
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Aug 2023 15:42:24 +0000 (17:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Sep 2023 12:18:26 +0000 (14:18 +0200)
commit3479d99d5f4c7fd8afc4e52a92ec3d1fb5c91446
tree3c6dfbde1bbe1a49c63e30049fe6be2e30c27963
parent49ed83e94867d1190308b85d3b37eba9469fa998
BUG/MEDIUM: stconn: Update stream expiration date on blocked sends

When outgoing data are blocked, we must update the stream expiration date
and requeue the task. It is important to be sure to properly handle write
timeout, expecially if the stream cannot expire on reads. This bug was
introduced when handling of channel's timeouts was refactored to be managed
by the stream-connectors.

It is an issue if there is no server timeout and the client does not consume
the response (or the opposite but it is less common). It is also possible to
trigger the same scenario with applets on server side because, most of time,
there is no server timeout.

This patch must be backported to 2.8.
src/applet.c
src/stconn.c