{ok, _} = application:ensure_all_started(ranch).
ranch - Socket acceptor pool for TCP protocols
Ranch is a socket acceptor pool for TCP protocols.
Ranch manages listeners which are a set of processes that accept and manage connections. The connection's transport and protocol modules are configured per listener. Listeners can be inspected and reconfigured without interruptions in service.
Functions:
Transports:
Behaviors:
All these applications must be started before the ranch application. To start Ranch and all dependencies at once:
{ok, _} = application:ensure_all_started(ranch).
The ranch application defines the following application environment configuration parameters:
When enabled, Ranch will start eprof profiling automatically.
You can use the ranch_app:profile_output/0 function to stop profiling and output the results to the files procs.profile and total.profile. Do not use in production.
Maximum number of restarts allowed for the ranch_sup supervisor during ranch_sup_period seconds.
Time window, in seconds, for the ranch_sup restart intensity.
ranch_sup_intensity and ranch_sup_period application environment parameters were documented.
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.