diff options
author | Loïc Hoguin <[email protected]> | 2016-06-06 15:06:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-06 15:06:38 +0200 |
commit | c02d3fd1096bfb35e6347d6e4f14ee56fa99e342 (patch) | |
tree | 9de8f900a52a8cb9d7e112f60699965c018db295 | |
parent | 23fc8e2a89058d2f96ff64c0bc0dff637662995c (diff) | |
download | gun-c02d3fd1096bfb35e6347d6e4f14ee56fa99e342.tar.gz gun-c02d3fd1096bfb35e6347d6e4f14ee56fa99e342.tar.bz2 gun-c02d3fd1096bfb35e6347d6e4f14ee56fa99e342.zip |
Handle RST_STREAM in HTTP/2 protocol
-rw-r--r-- | src/gun_http2.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 5c82756..095056a 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -141,8 +141,8 @@ frame({headers, StreamID, IsFin, head_fin, HeaderBlock}, % %% @todo Handle priority. % State; %% @todo RST_STREAM frame. -%frame(State, {rst_stream, StreamID, Reason}) -> -% stream_reset(State, StreamID, {stream_error, Reason, 'Stream reset requested by client.'}); +frame({rst_stream, StreamID, Reason}, State) -> + stream_reset(State, StreamID, {stream_error, Reason, 'Stream reset by server.'}); %% SETTINGS frame. frame({settings, _Settings}, State=#http2_state{socket=Socket, transport=Transport}) -> %% @todo Apply SETTINGS. |