BUG/MINOR: mux-h2: fix the offset of the pattern for the ping frame

The ping frame's pattern must be written at offset 9 (frame header
length), not 8. This was added in 3.2 with commit 4dcfe098a6 ("MINOR:
mux-h2: prepare to support PING emission"), so no backport is needed.
This commit is contained in:
Willy Tarreau 2025-04-29 12:05:08 +02:00
parent 2f7f65e159
commit 989f609b1a

View File

@ -3155,7 +3155,7 @@ static int h2c_send_ping(struct h2c *h2c, int ack)
"\x00\x00\x00\x00" /* stream ID */, 9); "\x00\x00\x00\x00" /* stream ID */, 9);
/* opaque data */ /* opaque data */
memcpy(str + 8, "\x00\x01\x02\x03\x04\x05\x06\x07", 8); memcpy(str + 9, "\x00\x01\x02\x03\x04\x05\x06\x07", 8);
} }
else { else {
if (b_data(&h2c->dbuf) < 8) { if (b_data(&h2c->dbuf) < 8) {