diff options
Diffstat (limited to 'doc/src/manual/ranch.set_max_connections.asciidoc')
-rw-r--r-- | doc/src/manual/ranch.set_max_connections.asciidoc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/src/manual/ranch.set_max_connections.asciidoc b/doc/src/manual/ranch.set_max_connections.asciidoc index 2559afe..cc1bb20 100644 --- a/doc/src/manual/ranch.set_max_connections.asciidoc +++ b/doc/src/manual/ranch.set_max_connections.asciidoc @@ -2,7 +2,7 @@ == Name -ranch:set_max_connections - Set the max number of connections +ranch:set_max_connections - Set the max number of connections per connection supervisor == Description @@ -13,7 +13,7 @@ set_max_connections(Ref :: ranch:ref(), -> ok ---- -Set the max number of connections. +Set the max number of connections per connection supervisor. The change will be applied immediately. If the new value is smaller than the previous one, Ranch will wait for the extra @@ -28,15 +28,19 @@ The listener name. MaxConns:: -The new maximum number of connections. +The new maximum number of connections per connection supervisor. == Return value The atom `ok` is always returned. It can be safely ignored. +== Changelog + +* *2.0*: The maximum number of connections is now per connection supervisor. + == Examples -.Set the max number of connections +.Set the max number of connections per connection supervisor [source,erlang] ---- ranch:set_max_connections(example, 10000). |