aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.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.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.erl')
-rw-r--r--src/gun.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gun.erl b/src/gun.erl
index ddd38c8..c596764 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -758,7 +758,7 @@ flush_pid(ServerPid) ->
receive
{gun_up, ServerPid, _} ->
flush_pid(ServerPid);
- {gun_down, ServerPid, _, _, _, _} ->
+ {gun_down, ServerPid, _, _, _} ->
flush_pid(ServerPid);
{gun_inform, ServerPid, _, _, _} ->
flush_pid(ServerPid);
@@ -1423,8 +1423,8 @@ disconnect(State0=#state{owner=Owner, status=Status, opts=Opts,
%% We closed the socket, discard any remaining socket events.
disconnect_flush(State),
%% @todo Stop keepalive timeout, flush message.
- {KilledStreams, UnprocessedStreams} = Protocol:down(ProtoState),
- Owner ! {gun_down, self(), Protocol:name(), Reason, KilledStreams, UnprocessedStreams},
+ KilledStreams = Protocol:down(ProtoState),
+ Owner ! {gun_down, self(), Protocol:name(), Reason, KilledStreams},
Retry = maps:get(retry, Opts, 5),
case Retry of
0 when Reason =:= normal ->