]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: Add conn_upgrade_mux_fe() to handle mux upgrades
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Apr 2019 08:42:41 +0000 (10:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commitc0016d8119e28b28332e077ba2d0260f3cb59709
treea16c45ca4c0a0aae9665e652c37048d23d5e7e56
parent39a96ee16eeec51774f9f52a783cf624a0de4ccb
MEDIUM: connection: Add conn_upgrade_mux_fe() to handle mux upgrades

This function will handle mux upgrades, for frontend connections only. It will
retrieve the best mux in the same way than conn_install_mux_fe except that the
mode and optionnally the proto are forced.

The new multiplexer is initialized using a new context and a specific input
buffer. Then, the old one is destroyed. If an error occurred, everything is
rolled back.
include/proto/connection.h