]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h2: send DATA+ES or RST_STREAM on shutw/shutr
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Oct 2017 21:00:09 +0000 (22:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:16:19 +0000 (18:16 +0100)
commitc7576eac4603d80c787a276ba495f8471fc0a05b
treef89e92667dd93fc9f3c4dc786faeab5574641fc4
parentcd234e9fb0174da3d0f4a10fe0f27df4c8074704
MEDIUM: h2: send DATA+ES or RST_STREAM on shutw/shutr

When a stream sends a shutw, we send an empty DATA frame with the ES
flag set, except if no HEADERS were sent, in which case we rather send
RST_STREAM. On shutr(1) to abort a request, an RST_STREAM frame is sent
if the stream is OPEN and the stream is closed. Care is taken to switch
the stream's state accordingly and to avoid sending an ES bit again or
another RST once already done.
src/mux_h2.c