aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch.erl
diff options
context:
space:
mode:
authorJames Fish <[email protected]>2014-11-18 20:31:48 +0000
committerLoïc Hoguin <[email protected]>2016-11-15 16:38:08 +0200
commit6d60f69a2c28a282837fac715ec616e5d21fa4f7 (patch)
treeab59e470daf8274f153d8745b3e3805968c0b31d /src/ranch.erl
parentf33ff7cbacb204adae9d53ad15829f44c4140525 (diff)
downloadranch-6d60f69a2c28a282837fac715ec616e5d21fa4f7.tar.gz
ranch-6d60f69a2c28a282837fac715ec616e5d21fa4f7.tar.bz2
ranch-6d60f69a2c28a282837fac715ec616e5d21fa4f7.zip
Track removed connections
Diffstat (limited to 'src/ranch.erl')
-rw-r--r--src/ranch.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index 9eb9a47..a219784 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -124,7 +124,7 @@ accept_ack(Ref) ->
-spec remove_connection(ref()) -> ok.
remove_connection(Ref) ->
ConnsSup = ranch_server:get_connections_sup(Ref),
- ConnsSup ! {remove_connection, Ref},
+ ConnsSup ! {remove_connection, Ref, self()},
ok.
-spec get_addr(ref()) -> {inet:ip_address(), inet:port_number()}.