diff options
author | vdimir <[email protected]> | 2020-08-30 12:49:35 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-09-10 15:07:26 +0200 |
commit | 3e914c44a4e956c3b6ef3c1ffc64aac1fca46be9 (patch) | |
tree | 0e60a39a93162ecf880bda01cf6a9006c9f60292 /doc/src/guide | |
parent | 36e655405003a5898ff0fa234b0da3e2b208f647 (diff) | |
download | ranch-3e914c44a4e956c3b6ef3c1ffc64aac1fca46be9.tar.gz ranch-3e914c44a4e956c3b6ef3c1ffc64aac1fca46be9.tar.bz2 ranch-3e914c44a4e956c3b6ef3c1ffc64aac1fca46be9.zip |
Fix opts in listeners.asciidoc
Diffstat (limited to 'doc/src/guide')
-rw-r--r-- | doc/src/guide/listeners.asciidoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/guide/listeners.asciidoc b/doc/src/guide/listeners.asciidoc index 6e2dd19..0aee43c 100644 --- a/doc/src/guide/listeners.asciidoc +++ b/doc/src/guide/listeners.asciidoc @@ -200,7 +200,7 @@ overloaded and ensuring all the connections are handled optimally. [source,erlang] {ok, _} = ranch:start_listener(tcp_echo, - ranch_tcp, [{port, 5555}, {max_connections, 100}], + ranch_tcp, #{socket_opts => [{port, 5555}], max_connections => 100}, echo_protocol, [] ). @@ -210,7 +210,7 @@ You can disable this limit by setting its value to the atom `infinity`. [source,erlang] {ok, _} = ranch:start_listener(tcp_echo, - ranch_tcp, [{port, 5555}, {max_connections, infinity}], + ranch_tcp, #{socket_opts => [{port, 5555}], max_connections => infinity}, echo_protocol, [] ). |