From c02d3fd1096bfb35e6347d6e4f14ee56fa99e342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 6 Jun 2016 15:06:38 +0200 Subject: Handle RST_STREAM in HTTP/2 protocol --- src/gun_http2.erl | 4 ++-- 1 file 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. -- cgit v1.2.3