aboutsummaryrefslogtreecommitdiffstats
path: root/guide/listeners.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-12-24 16:09:40 +0100
committerLoïc Hoguin <[email protected]>2012-12-24 16:09:40 +0100
commit9993923c40b96ab07752ec36692dc09c4c7648e9 (patch)
tree7df91a8df7f0ef5ee4a6883e723fe0d86fa9ff83 /guide/listeners.md
parent058ad09e8b2c885a0888bda47459acd32ece917e (diff)
downloadranch-9993923c40b96ab07752ec36692dc09c4c7648e9.tar.gz
ranch-9993923c40b96ab07752ec36692dc09c4c7648e9.tar.bz2
ranch-9993923c40b96ab07752ec36692dc09c4c7648e9.zip
Add ranch:set_max_connections/2 and get_max_connections/1
Diffstat (limited to 'guide/listeners.md')
-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
---------