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.
"\x00\x00\x00\x00" /* stream ID */, 9);
/* 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 {
if (b_data(&h2c->dbuf) < 8) {