24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Don't forget gen_tcp:listen/2 options

Fixes #530.
This commit is contained in:
Holger Weiss 2015-04-14 20:22:34 +02:00
parent b67af5e036
commit e408276283

View File

@ -202,7 +202,8 @@ listen_tcp(PortIP, Module, SockOpts, Port, IPS) ->
{nodelay, true}, {nodelay, true},
{send_timeout, ?TCP_SEND_TIMEOUT}, {send_timeout, ?TCP_SEND_TIMEOUT},
{send_timeout_close, true}, {send_timeout_close, true},
{keepalive, true}]), {keepalive, true} |
SockOpts]),
case Res of case Res of
{ok, ListenSocket} -> {ok, ListenSocket} ->
ListenSocket; ListenSocket;