]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: remove some unneeded checks for CO_FL_SOCK_WR_SH
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2020 17:25:23 +0000 (18:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2020 18:01:37 +0000 (19:01 +0100)
commitf22758d12af5e9f3919f24bf913b883a62df7d93
tree5782a09aa2925f78890520955dbf2ede3f1c67d3
parenta8c7e8e3a8994770ceeea239b62ca3d7bf7aa641
MINOR: connection: remove some unneeded checks for CO_FL_SOCK_WR_SH

A few places in health checks and stream-int on the send path were still
checking for this flag. Now we do not and instead we rely on snd_buf()
to report the error if any.

It's worth noting that all 3 real muxes still use CO_FL_SOCK_WR_SH and
CO_FL_ERROR interchangeably at various places to decide to abort and/or
free their data. This should be clarified and fixed so that only
CO_FL_ERROR is used, and this will render the error paths simpler and
more accurate.
src/checks.c
src/stream_interface.c