]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: count in-progress requests
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 25 Jul 2022 09:21:46 +0000 (11:21 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Aug 2022 12:58:41 +0000 (14:58 +0200)
commitc603de4d84f06321566f80461f5cf4231f52af4e
tree58df359b417d013d660ad55e0f19edb21b29a910
parent5fc05d17ad29ae41dc5c4e640c7b9ac082dbac8b
MINOR: mux-quic: count in-progress requests

Add a new qcc member named <nb_hreq>. Its purpose is close to <nb_sc>
which represents the number of attached stream connectors. Both are
incremented inside qc_attach_sc().

The difference is on the decrement operation. While <nb_cs> is
decremented on sedesc detach callback, <nb_hreq> is decremented when the
qcs is locally closed.

In most cases, <nb_hreq> will be decremented before <nb_cs>. However, it
will be the reverse if a stream must be kept alive after detach callback.

The main purpose of this field is to implement http-keep-alive timeout.
Both <nb_sc> and <nb_hreq> must be null to activate the http-keep-alive
timeout.
include/haproxy/mux_quic-t.h
include/haproxy/mux_quic.h
src/mux_quic.c