aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Han <[email protected]>2019-04-28 10:17:43 +0800
committerTony Han <[email protected]>2019-04-28 10:54:54 +0800
commit0937c516a85b64a42660f973035bcc5799d545ac (patch)
tree75043826aa3e2a653112b90992ec416ed95a0083
parent75aaeb8415033b07303febbfeba66d6d3413ad06 (diff)
downloadcowlib-0937c516a85b64a42660f973035bcc5799d545ac.tar.gz
cowlib-0937c516a85b64a42660f973035bcc5799d545ac.tar.bz2
cowlib-0937c516a85b64a42660f973035bcc5799d545ac.zip
Return lingering_data when received data in lingering
-rw-r--r--src/cow_http2_machine.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cow_http2_machine.erl b/src/cow_http2_machine.erl
index ee34e75..76fe957 100644
--- a/src/cow_http2_machine.erl
+++ b/src/cow_http2_machine.erl
@@ -353,7 +353,7 @@ data_frame(Frame={data, StreamID, _, Data}, State0=#http2_machine{
%% DATA frames received for such lingering streams.
case lists:member(StreamID, Lingering) of
true ->
- {ok, State0};
+ {ok, {lingering_data, StreamID, DataLen}, State};
false ->
{error, {connection_error, stream_closed,
'DATA frame received for a closed stream. (RFC7540 5.1)'},