aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-26 13:40:26 +0200
committerLoïc Hoguin <[email protected]>2019-09-26 13:41:02 +0200
commitddc87f339f441fe5b62455606cf6ed6fb8dbc461 (patch)
tree7d33d7bf37d2216b2e6a72c0280c1e26dea2c7b8 /src/gun_http.erl
parent00cc1f385f94823a0684deee001b643091e235b0 (diff)
downloadgun-ddc87f339f441fe5b62455606cf6ed6fb8dbc461.tar.gz
gun-ddc87f339f441fe5b62455606cf6ed6fb8dbc461.tar.bz2
gun-ddc87f339f441fe5b62455606cf6ed6fb8dbc461.zip
Remove UnprocessedStreams from the gun_down message
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r--src/gun_http.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl
index 80c83bb..a220d75 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -701,14 +701,12 @@ stream_info(#http_state{streams=Streams}, StreamRef) ->
{ok, undefined}
end.
-%% HTTP does not provide any way to figure out what streams are unprocessed.
down(#http_state{streams=Streams}) ->
- KilledStreams = [case Ref of
+ [case Ref of
{connect, Ref2, _} -> Ref2;
#websocket{ref=Ref2} -> Ref2;
_ -> Ref
- end || #stream{ref=Ref} <- Streams],
- {KilledStreams, []}.
+ end || #stream{ref=Ref} <- Streams].
error_stream_closed(State, StreamRef, ReplyTo) ->
ReplyTo ! {gun_error, self(), StreamRef, {badstate,