]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: backend: Don't get proto to use for webscoket if there is no server
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2026 08:24:29 +0000 (09:24 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2026 08:24:32 +0000 (09:24 +0100)
commitaf6b9a0967467b0d74f52e273c33e53d36852599
tree5f65ca7611d410f5fe05228218aa09d38cd944cc
parentbfe5a2c3d7e89f2beac14d5f8f5fca54c6642c11
BUG/MINOR: backend: Don't get proto to use for webscoket if there is no server

In connect_server(), it is possible to have no server defined (dispatch mode
or transparent backend). In that case, we must be carefull to check the srv
variable in all calls involving the server. It was not perform at one place,
when the protocol to use for websocket is retrieved. This must not be done
when there is no server.

This patch should fix the first report in #3144. It must be backported to
all stable version.
src/backend.c