aboutsummaryrefslogtreecommitdiffstats
path: root/test/acceptor_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-17 15:05:57 +0200
committerLoïc Hoguin <[email protected]>2019-10-17 15:05:57 +0200
commitec98f78f154bcf71afbf198386dc0ffb765839f2 (patch)
tree84ace300fc448b5f2bfa422a177cb734e4039839 /test/acceptor_SUITE.erl
parentd92a10b19b8fb203a75b7e4065106573d30546d0 (diff)
downloadranch-no-pdict.tar.gz
ranch-no-pdict.tar.bz2
ranch-no-pdict.zip
Use a map instead of pdict to keep pid active/removed stateno-pdict
The performance seems to be equal as far as Cowboy is concerned, with a possible tiny improvement in the favor of maps. The code is smaller and the runtime introspection far cleaner because the process dictionary is small again.
Diffstat (limited to 'test/acceptor_SUITE.erl')
-rw-r--r--test/acceptor_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl
index 7fc26f4..217ba56 100644
--- a/test/acceptor_SUITE.erl
+++ b/test/acceptor_SUITE.erl
@@ -319,7 +319,7 @@ misc_set_transport_options(_) ->
num_acceptors => 2, shutdown => 1001, socket_opts => [{send_timeout, 5002}]}),
ConnsSups = [ConnsSup || {_, ConnsSup} <- ranch_server:get_connections_sups(Name)],
_ = [begin
- {State, _, _, _} = sys:get_state(ConnsSup),
+ {State, _, _, _, _} = sys:get_state(ConnsSup),
20 = element(10, State),
5001 = element(9, State),
1001 = element(5, State)