handshake_cancel(Ref :: ranch:ref()) -> ok
ranch:handshake_cancel - Cancel the paused transport handshake
handshake_cancel(Ref :: ranch:ref()) -> ok
Cancel the paused transport handshake.
This function may be called by the protocol process to cancel a paused handshake.
The listener name.
Allowed options depend on the transport module.
The return value depends on the transport module.
start_link(Ref, Transport, Opts) -> Pid = proc_lib:spawn_link(?MODULE, init, [Ref, Transport, Opts]), {ok, Pid}. init(Ref, Transport, Opts) -> {continue, _Info} = ranch:handshake(Ref), ranch:handshake_cancel(Ref), exit(handshake_cancelled).
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.