]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: connection: remove the CO_FL_WAIT_{RD,WR} flags
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jan 2014 18:46:33 +0000 (19:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 23:42:30 +0000 (00:42 +0100)
commit310987a0389d01d4472b2c43c0c650c9b254510b
tree59dc960383786369cb25f3ab67696317d7823d0b
parentf817e9f4732d20911445348ac5ac2b2af1893a20
MAJOR: connection: remove the CO_FL_WAIT_{RD,WR} flags

These flags were used to report the readiness of the file descriptor.
Now this readiness is directly checked at the file descriptor itself.
This removes the need for constantly synchronizing updates between the
file descriptor and the connection and ensures that all layers share
the same level of information.

For now, the readiness is updated in conn_{sock,data}_poll_* by directly
touching the file descriptor. This must move to the lower layers instead
so that these functions can disappear as well. In this state, the change
works but is incomplete. It's sensible enough to avoid making it more
complex.

Now the sock/data updates become much simpler because they just have to
enable/disable access to a file descriptor and not to care anymore about
its readiness.
include/proto/connection.h
include/types/connection.h
src/checks.c
src/connection.c
src/stream_interface.c