From 6f7b59886ec17027b16ed4d10737452e17f233d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 7 Jun 2017 15:15:54 +0200 Subject: Remove NumAcceptors argument from start_clear/tls They are now cowboy:start_clear/3 and cowboy:start_tls/3. The NumAcceptors argument can be specified via the num_acceptor transport option. Ranch has been updated to 1.4.0 to that effect. --- doc/src/manual/cowboy.start_tls.asciidoc | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'doc/src/manual/cowboy.start_tls.asciidoc') diff --git a/doc/src/manual/cowboy.start_tls.asciidoc b/doc/src/manual/cowboy.start_tls.asciidoc index f5e7fb4..1cf87c9 100644 --- a/doc/src/manual/cowboy.start_tls.asciidoc +++ b/doc/src/manual/cowboy.start_tls.asciidoc @@ -9,7 +9,6 @@ cowboy:start_tls - Listen for connections using TLS [source,erlang] ---- start_tls(Name :: ranch:ref(), - NumAcceptors :: non_neg_integer(), TransportOpts :: ranch_ssl:opts(), ProtocolOpts :: opts()) -> {ok, ListenerPid :: pid()} @@ -33,22 +32,6 @@ updating the routes defined. It can be any Erlang term. An atom is generally good enough, for example `api`, `my_app_clear` or `my_app_tls`. -NumAcceptors:: - -The number of acceptors is the number of processes that -will accept connections. Tweak this value to improve the -accept rate for incoming connections. -+ -The ideal value is between 10 and 100 on most systems. -Larger values may have the opposite effect and reduce the -accept rate. It's generally safe to start with a value of -100 (or 10 on low memory systems). Then, when accept rates -become a concern, measure the performance and update the -value accordingly. -+ -This value is unrelated to the maximum number of concurrent -connections. - TransportOpts:: The transport options are where the TCP options, including @@ -102,7 +85,7 @@ Dispatch = cowboy_router:compile([ ]} ]), -{ok, _} = cowboy:start_tls(example, 100, [ +{ok, _} = cowboy:start_tls(example, [ {port, 8443}, {cert, "path/to/cert.pem"} ], #{ @@ -115,7 +98,7 @@ Dispatch = cowboy_router:compile([ ---- Name = example, -{ok, _} = cowboy:start_tls(Name, 100, [ +{ok, _} = cowboy:start_tls(Name, [ {cert, "path/to/cert.pem"} ], #{ env => #{dispatch => Dispatch} -- cgit v1.2.3