]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stconn: Add two date to track successful reads and blocked sends
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 Feb 2023 10:09:31 +0000 (11:09 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Feb 2023 13:52:15 +0000 (14:52 +0100)
commit4c13568b49e60ab3ae3144ba94c6a450db9183bd
tree06c15c48fa124f755ea1ec82741c7aaf1eb5c7a0
parent5aaacfbccd8cfadbdd75f3d95e28e6b12753e58e
MEDIUM: stconn: Add two date to track successful reads and blocked sends

The stream endpoint descriptor now owns two date, lra (last read activity) and
fsb (first send blocked).

The first one is updated every time a read activity is reported, including data
received from the endpoint, successful connect, end of input and shutdown for
reads. A read activity is also reported when receives are unblocked. It will be
used to detect read timeouts.

The other one is updated when no data can be sent to the endpoint and reset
when some data are sent. It is the date of the first send blocked by the
endpoint. It will be used to detect write timeouts.

Helper functions are added to report read/send activity and to retrieve lra/fsb
date.
include/haproxy/sc_strm.h
include/haproxy/stconn-t.h
include/haproxy/stconn.h
src/applet.c
src/stconn.c
src/stream.c