]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Handle errors and timeouts in the stream
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 31 Oct 2018 16:40:50 +0000 (17:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:10:08 +0000 (22:10 +0100)
commit473652733a39604e4e803409cb00d55d02e9a502
tree5252e941df1bc626f5ce1f9e18da5ab82ffca374
parented28da534a36e7a9889888f2151310e663a95716
MEDIUM: mux-h1: Handle errors and timeouts in the stream

To do so, the stream is created as earlier as possible. It means, during the mux
creation for the first request, and for others, just at the end of the previous
transaction. Because all timeouts are handled by the strream, the mux's task is
now useless, so it is removed. Finally, to report errors, flags are set on the
HTX message. The HTX message is passed to the stream if there is some content to
analyse or if there is some error to handle.

All of this will probably be reworked later to handle errors and timeouts
directly in the mux. For now, it is the simpler way to handle all of this.
src/mux_h1.c
src/proto_htx.c