]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: provide a generic data layer wakeup callback
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2012 18:07:22 +0000 (20:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:10 +0000 (22:26 +0200)
commit4aa3683b2d612814d6fb4a84667983f7e9e3d658
treecc614508bc7b6d8e1b361030c19e0111c6ec0273
parent74beec32a5f206c2234837626d96e05a45e723d5
MINOR: connection: provide a generic data layer wakeup callback

Instead of calling conn_notify_si() from the connection handler, we
now call data->wake(), which will allow us to use a different callback
with health checks.

Note that we still rely on a flag in order to decide whether or not
to call this function. The reason is that with embryonic sessions,
the callback is already initialized to si_conn_cb without the flag,
and we can't call the SI notify function in the leave path before
the stream interface is initialized.

This issue should be addressed by involving a different data_cb for
embryonic sessions and for stream interfaces, that would be changed
during session_complete() for the final data_cb.
include/proto/stream_interface.h
include/types/connection.h
src/connection.c
src/session.c
src/stream_interface.c