From e408276283038e15d009a2b4a6a08c1092d0b799 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 14 Apr 2015 20:22:34 +0200 Subject: [PATCH] Don't forget gen_tcp:listen/2 options Fixes #530. --- src/ejabberd_listener.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_listener.erl b/src/ejabberd_listener.erl index a4ccbe84e..0cfca0aa0 100644 --- a/src/ejabberd_listener.erl +++ b/src/ejabberd_listener.erl @@ -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;