[MEDIUM] session: make it possible to call an I/O handler on both SI
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Jul 2010 14:30:45 +0000 (16:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Jul 2010 14:34:26 +0000 (16:34 +0200)
commit7a20aa6e6bc5f17f5d0c18bd087e657243bebb45
treed451791a3435208090240cfffada388ecb1b4ee8
parent258a14b7d76ea2d73d030d052f89a337a345c410
[MEDIUM] session: make it possible to call an I/O handler on both SI

This will be used when an I/O handler running in a stream interface
needs to establish a connection somewhere. We want the session
processor to evaluate both I/O handlers, depending on which side has
one. Doing so also requires that stream_int_update_embedded() wakes
the session up only when the other side is established or has closed,
for instance in order to handle connection errors without looping
indefinitely during the connection setup time.

The session processor still relies on BF_READ_ATTACHED being set,
though we must do whatever is required to remove this dependency.
src/session.c
src/stream_interface.c