Fix bug that forgot listener options when using R12 or older.

SVN Revision: 2734
This commit is contained in:
Badlop 2009-11-06 18:24:54 +00:00
parent 2007b3d496
commit 041d947e83
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
SockOpts2 = case erlang:system_info(otp_release) >= "R13B" of
true -> [{send_timeout_close, true} | SockOpts];
false -> []
false -> SockOpts
end,
Res = gen_tcp:listen(Port, [binary,
{packet, 0},