]> git.kaiwu.me - haproxy.git/commit
MEDIUM: stream: No longer release backend conn-stream on connection retry
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 Dec 2021 13:44:31 +0000 (14:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:02 +0000 (11:00 +0100)
commite00ad358c914100d8784a8c349542d2379513d3b
tree445479f149b7888a82898203af72a3132dc31abe
parente39827de0d6798d0ce2a88e59dd7b312d367a898
MEDIUM: stream: No longer release backend conn-stream on connection retry

The backend conn-stream is no longer released on connection retry. This
means the conn-stream is detached from the underlying connection but not
released. Thus, during connection retries, the stream has always an
allocated conn-stream with no connection. All previous changes were made to
make this possible.

Note that .attach() mux callback function was changed to get the conn-stream
as argument. The muxes are no longer responsible to create the conn-stream
when a server connection is attached to a stream.
include/haproxy/connection-t.h
src/backend.c
src/cli.c
src/http_ana.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/stream.c