]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: sample: pass a pointer to the session to each sample fetch function
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Apr 2015 23:47:55 +0000 (01:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:37:25 +0000 (11:37 +0200)
commit192252e2d8a4f4f5b01f5466526bb522a4254df0
tree0a9fa7e7fa75074ab6d4d33b8a9dd132fdb4e19d
parentfdcd2ae1f8b96190570bbe3112dd44a00cf81a23
MAJOR: sample: pass a pointer to the session to each sample fetch function

Many such function need a session, and till now they used to dereference
the stream. Once we remove the stream from the embryonic session, this
will not be possible anymore.

So as of now, sample fetch functions will be called with this :

   - sess = NULL,  strm = NULL                     : never
   - sess = valid, strm = NULL                     : tcp-req connection
   - sess = valid, strm = valid, strm->txn = NULL  : tcp-req content
   - sess = valid, strm = valid, strm->txn = valid : http-req / http-res
20 files changed:
include/proto/acl.h
include/proto/proto_http.h
include/proto/sample.h
include/proto/stick_table.h
include/proto/stream.h
include/types/sample.h
src/acl.c
src/backend.c
src/compression.c
src/frontend.c
src/hlua.c
src/listener.c
src/log.c
src/payload.c
src/proto_http.c
src/proto_tcp.c
src/sample.c
src/ssl_sock.c
src/stick_table.c
src/stream.c