]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn: Add samples to retrieve about stream aborts
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2024 13:20:24 +0000 (15:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 May 2024 20:00:00 +0000 (22:00 +0200)
commit068ce2d5d2c94574734411aaca3c31748409e36e
tree83f72f920e4801d761f430668fc774fb95546097
parent367ce1ebf3e4cead319a9f01581037c9f0280e77
MINOR: stconn: Add samples to retrieve about stream aborts

It is now possible to retrieve some info about the abort received for a
server or a client stream, if any.

  * fs.aborted and bs.aborted can be used to know if an abort was received
    on frontend or backend side. A boolean is returned.

  * fs.rst_code and bs.rst_code return the code of the received RESET_STREAM
    frame for a H2 stream or the code of the received STOP_SENDING frame for
    a QUIC stream. In both cases, the error code attached to the frame is
    returned. The sample fetch fails if no such frame was received or if the
    stream is not an H2/QUIC stream.
doc/configuration.txt
src/stconn.c