]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: make h2c_send_rst_stream() use the dummy stream's error code
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Dec 2018 17:26:26 +0000 (18:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Dec 2018 10:45:00 +0000 (11:45 +0100)
commite6888fff7581db7df5701da26bca2661625edb9c
tree3b32e0d8e798c68819c61e103ec85fba4d553382
parent5c8cafae396b5c3bcd28576263d575f9067675d1
MINOR: mux-h2: make h2c_send_rst_stream() use the dummy stream's error code

We currently have 2 dummy streams allowing us to send an RST_STREAM
message with an error code matching this one. However h2c_send_rst_stream()
still enforces the STREAM_CLOSED error code for these dummy streams,
ignoring their respective errcode fields which however are properly
set.

Let's make the function always use the stream's error code. This will
allow to create other dummy streams for different codes.
src/mux_h2.c