aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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