25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01: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},
{send_timeout, ?TCP_SEND_TIMEOUT},
{send_timeout_close, true},
{keepalive, true}]),
{keepalive, true} |
SockOpts]),
case Res of
{ok, ListenSocket} ->
ListenSocket;