]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: connection: use conn_ctrl_ready() instead of checking the flag
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2014 12:50:42 +0000 (13:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 23:42:31 +0000 (00:42 +0100)
commit3c72872da17280beb61c46b7b7424cc10e1e1610
tree14dd6252ccd689353d612e4bd21e850bced7a9a5
parentd8375891fcd48ecd5069a7d6838d6e07b5cf06b0
CLEANUP: connection: use conn_ctrl_ready() instead of checking the flag

It's easier and safer to rely on conn_ctrl_ready() everywhere than to
check the flag itself. It will also simplify adding extra checks later
if needed. Some useless controls for !ctrl have been removed, as the
CTRL_READY flag itself guarantees ctrl is set.
include/proto/connection.h
src/checks.c
src/connection.c
src/dumpstats.c
src/proto_http.c
src/proto_tcp.c
src/ssl_sock.c