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
1 changed files with 2 additions and 1 deletions

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;