aboutsummaryrefslogtreecommitdiffstats
path: root/test/shutdown_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-05-31 14:11:38 +0200
committerLoïc Hoguin <[email protected]>2017-05-31 14:11:38 +0200
commit2730f7188738cc7b1100e50bcc8567d33ecb3934 (patch)
tree66d1daac50363684954316dc6b371a51188ce6f8 /test/shutdown_SUITE.erl
parenta004ad710eddd0c21aaccc30d5633a76b06164b5 (diff)
downloadranch-2730f7188738cc7b1100e50bcc8567d33ecb3934.tar.gz
ranch-2730f7188738cc7b1100e50bcc8567d33ecb3934.tar.bz2
ranch-2730f7188738cc7b1100e50bcc8567d33ecb3934.zip
Deprecated ranch:start_listener/6 and child_spec/6
The NumAcceptors argument has been moved to transport option num_acceptor, which defaults to 10. The functions now take one less argument. The old functions are still here, though deprecated.
Diffstat (limited to 'test/shutdown_SUITE.erl')
-rw-r--r--test/shutdown_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/shutdown_SUITE.erl b/test/shutdown_SUITE.erl
index e62a1a9..505b86a 100644
--- a/test/shutdown_SUITE.erl
+++ b/test/shutdown_SUITE.erl
@@ -28,7 +28,7 @@ all() ->
brutal_kill(_) ->
doc("Shutdown Ranch listener with shutdown option set to brutal_kill."),
Name = name(),
- {ok, ListenerSup} = ranch:start_listener(Name, 1,
+ {ok, ListenerSup} = ranch:start_listener(Name,
ranch_tcp, [{port, 0}, {shutdown, brutal_kill}],
echo_protocol, []),
Port = ranch:get_port(Name),
@@ -48,7 +48,7 @@ brutal_kill(_) ->
infinity(_) ->
doc("Shutdown Ranch listener with shutdown option set to infinity."),
Name = name(),
- {ok, ListenerSup} = ranch:start_listener(Name, 1,
+ {ok, ListenerSup} = ranch:start_listener(Name,
ranch_tcp, [{port, 0}, {shutdown, infinity}],
echo_protocol, []),
Port = ranch:get_port(Name),
@@ -70,7 +70,7 @@ infinity_trap_exit(_) ->
"and protocol process trapping exits. The listener must not stop "
"until the protocol process terminates."),
Name = name(),
- {ok, ListenerSup} = ranch:start_listener(Name, 1,
+ {ok, ListenerSup} = ranch:start_listener(Name,
ranch_tcp, [{port, 0}, {shutdown, infinity}],
trap_exit_protocol, []),
Port = ranch:get_port(Name),
@@ -99,7 +99,7 @@ infinity_trap_exit(_) ->
timeout(_) ->
doc("Shutdown Ranch listener with shutdown option set to 500ms."),
Name = name(),
- {ok, ListenerSup} = ranch:start_listener(Name, 1,
+ {ok, ListenerSup} = ranch:start_listener(Name,
ranch_tcp, [{port, 0}, {shutdown, 500}],
echo_protocol, []),
Port = ranch:get_port(Name),
@@ -121,7 +121,7 @@ timeout_trap_exit(_) ->
"and protocol process trapping exits. The listener will only stop "
"after the 500ms timeout."),
Name = name(),
- {ok, ListenerSup} = ranch:start_listener(Name, 1,
+ {ok, ListenerSup} = ranch:start_listener(Name,
ranch_tcp, [{port, 0}, {shutdown, 500}],
trap_exit_protocol, []),
Port = ranch:get_port(Name),