]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG/MAJOR: move session's req and resp channels back into the session
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Nov 2014 19:45:39 +0000 (20:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:46 +0000 (20:41 +0100)
commit22ec1eadd0144f46b9e4a42c946e78e77b88becc
tree936c9da6b1a326ed07512a32619bfafb39a430bc
parent17bd152b588a58937df43a8ec56b4e09702f368c
REORG/MAJOR: move session's req and resp channels back into the session

The channels were pointers to outside structs and this is not needed
anymore since the buffers have moved, but this complicates operations.
Move them back into the session so that both channels and stream interfaces
are always allocated for a session. Some places (some early sample fetch
functions) used to validate that a channel was NULL prior to dereferencing
it. Now instead we check if chn->buf is NULL and we force it to remain NULL
until the channel is initialized.
12 files changed:
include/types/session.h
src/backend.c
src/dumpstats.c
src/frontend.c
src/hlua.c
src/log.c
src/payload.c
src/peers.c
src/proto_http.c
src/proto_tcp.c
src/proxy.c
src/session.c