diff options
author | Loïc Hoguin <[email protected]> | 2019-10-17 15:05:57 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-17 15:05:57 +0200 |
commit | ec98f78f154bcf71afbf198386dc0ffb765839f2 (patch) | |
tree | 84ace300fc448b5f2bfa422a177cb734e4039839 /test | |
parent | d92a10b19b8fb203a75b7e4065106573d30546d0 (diff) | |
download | ranch-ec98f78f154bcf71afbf198386dc0ffb765839f2.tar.gz ranch-ec98f78f154bcf71afbf198386dc0ffb765839f2.tar.bz2 ranch-ec98f78f154bcf71afbf198386dc0ffb765839f2.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')
-rw-r--r-- | test/acceptor_SUITE.erl | 2 |
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) |