]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connections/mux: Add a new "subscribe" method.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 17 Jul 2018 16:46:31 +0000 (18:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000 (16:23 +0200)
commit6ff2039d13a3acaa18887650f9d56a9e5c848379
tree918412a9f18464ef55838d3ee5210c0e8438ec01
parente17c2d3e57eebd8b3605fb7eb765dc05ca3bca80
MINOR: connections/mux: Add a new "subscribe" method.

Add a new "subscribe" method for connection, conn_stream and mux, so that
upper layer can subscribe to them, to be called when the event happens.
Right now, the only event implemented is "SUB_CAN_SEND", where the upper
layer can register to be called back when it is possible to send data.

The connection and conn_stream got a new "send_wait_list" entry, which
required to move a few struct members around to maintain an efficient
cache alignment (and actually this slightly improved performance).
include/proto/connection.h
include/types/connection.h
src/connection.c
src/mux_h2.c
src/mux_pt.c
src/raw_sock.c
src/ssl_sock.c