BUG/MINOR: mux-h2: don't report a fantom h2s in "show fd"
The h2s pointer was used to scan fctl lists prior to being used to scan the send list by ID, so it could appear non-null eventhough the list is empty, resulting in misleading information on empty connections. No backport is needed.
This commit is contained in:
parent
fb3b1b00e2
commit
3af3771bf3
|
@ -4860,6 +4860,7 @@ static void h2_show_fd(struct buffer *msg, struct connection *conn)
|
||||||
list_for_each_entry(h2s, &h2c->send_list, list)
|
list_for_each_entry(h2s, &h2c->send_list, list)
|
||||||
send_cnt++;
|
send_cnt++;
|
||||||
|
|
||||||
|
h2s = NULL;
|
||||||
node = eb32_first(&h2c->streams_by_id);
|
node = eb32_first(&h2c->streams_by_id);
|
||||||
while (node) {
|
while (node) {
|
||||||
h2s = container_of(node, struct h2s, by_id);
|
h2s = container_of(node, struct h2s, by_id);
|
||||||
|
|
Loading…
Reference in New Issue