]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: extract the send_proxy callback from proto_tcp
authorWilly Tarreau <wtarreau@exceliance.fr>
Fri, 6 Jul 2012 15:12:34 +0000 (17:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:51:28 +0000 (21:51 +0200)
commit2c6be84b3a94150e4f74f256ba7ef12be7a42f36
treed55a45de710b984856848ea82e88e407b9746235
parent61ace1b2ca51729270bd980984a2c67293bc2a2f
MEDIUM: connection: extract the send_proxy callback from proto_tcp

This handshake handler must be independant, so move it away from
proto_tcp. It has a dedicated connection flag. It is tested before
I/O handlers and automatically removes the CO_FL_WAIT_L4_CONN flag
upon success.

It also sets the BF_WRITE_NULL flag on the stream interface and
stops the SI timeout. However it does not perform the task_wakeup(),
and relies on the data handler to do so for now. The SI wakeup will
have to be moved elsewhere anyway.
include/proto/stream_interface.h
include/types/connection.h
src/connection.c
src/proto_tcp.c
src/stream_interface.c