]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2/trace: report the connection pointer and state before FRAME_H
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 09:52:59 +0000 (11:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 09:58:58 +0000 (11:58 +0200)
Initially we didn't report anything before FRAME_H but at least the
connection's pointer and its state are desirable.

src/mux_h2.c

index d65d0d0cf576954e9b7ece2996b6925438cba7fc..7bbaca9c9f367d62df56964c64357009a662744c 100644 (file)
@@ -502,11 +502,8 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s
        if (!h2c) // nothing to add
                return;
 
-       if (h2c->st0 < H2_CS_FRAME_H) // nothing to add for now
-               return;
-
        if (src->verbosity > H2_VERB_CLEAN) {
-               if (!h2s)
+               if (!h2s || h2c->st0 < H2_CS_FRAME_H)
                        chunk_appendf(&trace_buf, " : h2c=%p(%s)", h2c, h2c_st_to_str(h2c->st0));
                else if (h2s->id <= 0)
                        chunk_appendf(&trace_buf, " : h2c=%p(%s) dsi=%d h2s=%p(%d,%s)", h2c, h2c_st_to_str(h2c->st0), h2c->dsi, h2s, h2s->id, h2s_st_to_str(h2s->st));