The ranch_tcp
module implements a TCP Ranch transport.
Note that due to bugs in OTP up to at least R16B02, it is
recommended to disable async threads when using the
sendfile
function of this transport, as it can make
the threads stuck indefinitely.
| {ip, inet:ip_address()}
| {linger, {boolean(), non_neg_integer()}}
| {nodelay, boolean()}
| {port, inet:port_number()}
| {raw, non_neg_integer(), non_neg_integer(), non_neg_integer() | binary()}
| {send_timeout, timeout()}
| {send_timeout_close, boolean()}]
Listen options.
This does not represent the entirety of the options that can be set on the socket, but only the options that should be set independently of protocol implementation.
None of the options are required.
The default value is given next to the option name.
The raw
option is unsupported.
None.