]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: merge the read and write error bits into RW error
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Feb 2020 15:12:45 +0000 (16:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Feb 2020 06:42:29 +0000 (07:42 +0100)
commit1ed3781e2130a0a7c7d4b35e58990a6d30d5f538
tree52dae32a087e2bbf406aa1ad01ef345fe15eab9f
parenta135ea63a6ac8a21facc2fe69817d40e1c0bbb83
MINOR: fd: merge the read and write error bits into RW error

We always set them both, which makes sense since errors at the FD level
indicate a terminal condition for the socket that cannot be recovered.
Usually this is detected via a write error, but sometimes such an error
may asynchronously be reported on the read side. Let's simplify this
using only the write bit and calling it RW since it's used like this
everywhere, and leave the R bit spare for future use.
include/proto/fd.h
include/types/fd.h