]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream/htx: add the HTX flags output in "show sess all"
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2019 09:01:34 +0000 (10:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2019 09:01:34 +0000 (10:01 +0100)
Commit b9af88151 ("MINOR: stream/htx: Add info about the HTX structs in
"show sess all" command") accidently forgot the flags on the request
path, it was only on the response path.

It makes sense to backport this to 1.9 so that both outputs are the same.

src/stream.c

index 2bc111d997138778e114c5a77aa4c61b47b42f84..aabc6c9ab33fa170ad1db321cae7e772c84dae30 100644 (file)
@@ -3087,8 +3087,8 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
                        struct htx *htx = htxbuf(&strm->req.buf);
 
                        chunk_appendf(&trash,
-                                     "      htx=%p size=%u data=%u used=%u wrap=%s extra=%llu\n",
-                                     htx, htx->size, htx->data, htx->used,
+                                     "      htx=%p flags=0x%x size=%u data=%u used=%u wrap=%s extra=%llu\n",
+                                     htx, htx->flags, htx->size, htx->data, htx->used,
                                      (!htx->used || htx->tail+1 == htx->wrap) ? "NO" : "YES",
                                      (unsigned long long)htx->extra);
                }