]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: qmux: do not crash on receiving an invalid first frame
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 27 May 2026 13:35:34 +0000 (15:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 27 May 2026 13:38:51 +0000 (15:38 +0200)
commit205312023af40b8991d0c087dab436c96a6a3e8f
tree4063aef55d77e66975babf332a59d8a09c1b9ea1
parent8a8898aeddb7f7cf2c62461bfa04df05208481df
BUG/MEDIUM: qmux: do not crash on receiving an invalid first frame

With QMux, each peer has to first emit a transport parameters frame. If
the received frame is different, xprt_qmux handshake cannot proceed.
This patch removes the BUG_ON() in this case, replacing it with a safer
connection closure.

In the future, a graceful close with CONNECTION_CLOSE frame should be
implemented.

No need to backport.
src/xprt_qmux.c