From 2730f7188738cc7b1100e50bcc8567d33ecb3934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 31 May 2017 14:11:38 +0200 Subject: 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. --- test/shutdown_SUITE.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/shutdown_SUITE.erl') 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), -- cgit v1.2.3