]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Add a trace on shutdown when keep-alive is not possible
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Oct 2024 12:57:17 +0000 (14:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Oct 2024 11:53:40 +0000 (13:53 +0200)
When the stream is shut down, some tests are performed to know if the
connection must also be closed or not. There are trace messages for all
cases, except for the default one: Abort or close-mode. Thanks to this
patch, there is now a message too in this case.

src/mux_h1.c

index ca85b2623816226cadf6b30395a3ecd82db420f2..c2f17825590d52fe9d8c14ad802463b61958da28 100644 (file)
@@ -1066,6 +1066,7 @@ static int h1s_must_shut_conn(struct h1s *h1s)
        }
        else {
                /* The default case, do the shutdown */
+               TRACE_STATE("shutdown on connection (abort || want_clo)", H1_EV_STRM_SHUT, h1c->conn, h1s);
                ret = 1;
        }