]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: connection: use conn_xprt_ready() instead of checking the flag
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2014 13:21:42 +0000 (14:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 23:42:31 +0000 (00:42 +0100)
commitaad69387ac9c34c4cd6311a7c0de7e41fa81fb05
treed97103cbbade7acfbd981de3e89c5c5dabe55820
parent3c72872da17280beb61c46b7b7424cc10e1e1610
CLEANUP: connection: use conn_xprt_ready() instead of checking the flag

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