MINOR: channel: Stop to test CF_READ_ERROR flag if CF_SHUTR is enough
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Jan 2023 10:55:15 +0000 (11:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Jan 2023 17:41:08 +0000 (18:41 +0100)
commit4b490b75175585e787e7d83fabc79cd7825d9c1e
tree68e27fdb20550cebdc305385e7a674f12267fee6
parent2357718217df41f02a87c0ae9ded3e91f97925ab
MINOR: channel: Stop to test CF_READ_ERROR flag if CF_SHUTR is enough

When a read error (CF_READ_ERROR) is reported, a shutdown for reads is
always performed (CF_SHUTR). Thus, there is no reason to check if
CF_READ_ERROR is set if CF_SHUTR is also checked.
include/haproxy/channel.h
src/http_ana.c
src/http_fetch.c
src/stream.c
src/tcp_rules.c