]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn: flag the stream endpoint descriptor when the app has started
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Mar 2026 14:19:51 +0000 (16:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Mar 2026 14:27:53 +0000 (16:27 +0200)
commitcf3173d92b178bd9bbcb22002001f0cff8e5f275
tree8ca090676c9d36b9b548648e183d1c20f21877ce
parent5280130343f893d890fff3ce210e1a26a7e5c440
MINOR: stconn: flag the stream endpoint descriptor when the app has started

In order to improve our ability to distinguish operations that had
already started from others under high loads, it would be nice to know
if an application layer (stream) has started to work with an endpoint
or not. The use case typically is a frontend mux instantiating a stream
to instantly cancel it. Currently this info will take some time to be
detected and processed if the applcation's task takes time to wake up.
By flagging the sedesc with SE_FL_APP_STARTED the first time a the app
layer starts, the lower layers can know whether they're cancelling a
stream that has started to work or not, and act accordingly. For now
this is done unconditionally on the backend, and performed early in the
only two app layers that can be reached by a frontend: process_stream()
and process_hstream() (for haterm).
include/haproxy/stconn-t.h
src/haterm.c
src/stconn.c
src/stream.c