aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-04 08:41:52 +0200
committerLoïc Hoguin <[email protected]>2018-06-04 08:41:52 +0200
commit61cd503e7d54660628bde42669432677f3b4f27e (patch)
treec7f0155a065a4c1cd11692e72ccda4c5a8bec105
parent93c88fdc541c3f8a4ebbae3699bee90d00dc637f (diff)
downloadgun-61cd503e7d54660628bde42669432677f3b4f27e.tar.gz
gun-61cd503e7d54660628bde42669432677f3b4f27e.tar.bz2
gun-61cd503e7d54660628bde42669432677f3b4f27e.zip
Add some todos for later
-rw-r--r--src/gun_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index cf83970..548423d 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -524,6 +524,8 @@ down(#http2_state{streams=Streams}) ->
terminate(#http2_state{streams=Streams}, Reason) ->
%% Because a particular stream is unknown,
%% we're sending the error message to all streams.
+ %% @todo We should not send duplicate messages to processes.
+ %% @todo We should probably also inform the owner process.
_ = [ReplyTo ! {gun_error, self(), Reason} || #stream{reply_to=ReplyTo} <- Streams],
%% @todo Send GOAWAY frame.
%% @todo LastGoodStreamID