]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: sample: don't pass l7 anymore to sample fetch functions
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Apr 2015 22:52:09 +0000 (00:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:35:53 +0000 (11:35 +0200)
commit15e91e1b36e8579f5c4952e9c0d318a50591d1a5
tree2bbb530c41c72a3d2ca70c0be379750982f58388
parenteee5b51248ee5fefea257cb997de47f307516e86
MAJOR: sample: don't pass l7 anymore to sample fetch functions

All of them can now retrieve the HTTP transaction *if it exists* from
the stream and be sure to get NULL there when called with an embryonic
session.

The patch is a bit large because many locations were touched (all fetch
functions had to have their prototype adjusted). The opportunity was
taken to also uniformize the call names (the stream is now always "strm"
instead of "l4") and to fix indent where it was broken. This way when
we later introduce the session here there will be less confusion.
19 files changed:
include/proto/acl.h
include/proto/proto_http.h
include/proto/sample.h
include/proto/stick_table.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