]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: connections: Detach connections from streams.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 13 Nov 2018 15:48:36 +0000 (16:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:45:45 +0000 (21:45 +0100)
commit7c6f8b146de309e14f0b7ff9e680794683498c54
treed15a25c4c1b87ffaa2fe54f5d500bbb09cbd2ec0
parent131fd89d5a20f50942fef2f4f5afb915aad22e4a
MAJOR: connections: Detach connections from streams.

Do not destroy the connection when we're about to destroy a stream. This
prevents us from doing keepalive on server connections when the client is
using HTTP/2, as a new stream is created for each request.
Instead, the session is now responsible for destroying connections.
When reusing connections, the attach() mux method is now used to create a new
conn_stream.
include/proto/connection.h
include/proto/stream_interface.h
src/backend.c
src/mux_h2.c
src/mux_pt.c
src/proto_http.c
src/session.c
src/stream_interface.c