Ranch 1.6 added the ability to suspend and resume listeners. It also deprecates a number of features and add interfaces that will be used in Ranch 2.0.
Ranch 1.6 is compatible with Erlang/OTP 18.0 onward. Support for older releases has been removed.
Socket argument given when the protocol starts has been
deprecated. In Ranch 2.0 the socket will be obtainable only
by calling ranch:handshake/1,2.
socket_opts value. When there
are only socket options they can be passed to Ranch directly
as a convenience.
ack_timeout was renamed to handshake_timeout
in the map type.
cacerts socket option is now silenced in error logs
just like the certs and key options.
ranch_sup using the OTP application environment. This
feature will remain undocumented unless there is popular
demand for it.
logger that allows configuring
which logger module will be used. The logger module must
follow the interface of the new logger module in Erlang/OTP 21,
or be set to error_logger to keep the old behavior.
Transport:handshake/2,3
which deprecates and will replace Transport:accept_ack/1 in
Ranch 2.0. It returns a new socket and can therefore be used
for implementing TLS upgrade mechanisms.
ranch:suspend_listener/1 and ranch:resume_listener/1
were added. In addition the function ranch:get_state/1 can be used
to obtain the running state of a listener.
ranch:wait_for_connections/3 was added.
ranch:handshake/1,2 was added to replace the
function ranch:accept_ack/1.