_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
--
Loďc Hoguin
Instead in master this was removed, they just aren't counted, and the
application can just decide how to handle it.
The point is that we want to limit connections which are going to use
CPU but not the ones that are going to spend most of their time in a
receive loop, probably hibernating.
> cowboy:start_listener(my_http___listener, 200,
> cowboy_tcp_transport, [{port, ?COWBOY_HTTP_PORT}],
> cowboy_http_protocol, [{dispatch, Routes}]
> ).
>
> but i have seen some examples with
>
> cowboy:start_listener(my_http___listener, 200,
> cowboy_tcp_transport, [{port, ?COWBOY_HTTP_PORT},
> */{max_connections, infinity}/* ],
> cowboy_http_protocol, [{dispatch, Routes}]
> ).
>
>
> If you're using Cowboy 0.6.1 or below and looking for performance,
> you should set max_connections to infinity. If you're using master,
> you can let it at the default value.
>
> Websocket connections are not counted in that number. All HTTP
> connections are though, so you might want to look at cowboy_listener
> to see how to remove the connection from the count (varies depending
> on your version).
>
> --
> Loďc Hoguin
> Erlang Cowboy
> Nine Nines
> http://ninenines.eu
>
>
--
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu