aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
Diffstat (limited to 'guide')
-rw-r--r--guide/listeners.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/guide/listeners.md b/guide/listeners.md
index 32fddde..1209706 100644
--- a/guide/listeners.md
+++ b/guide/listeners.md
@@ -172,6 +172,16 @@ ranch_listener:remove_connection(ListenerPid).
As seen in the chapter covering protocols, this pid is received as the
first argument of the protocol's `start_link/4` callback.
+You can modify the `max_connections` value on a running listener by
+using the `ranch:set_max_connections/2` function, with the name of the
+listener as first argument and the new value as the second.
+
+``` erlang
+ranch:set_max_connections(tcp_echo, MaxConns).
+```
+
+The change will occur immediately.
+
Upgrading
---------