mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Fix bug that forgot listener options when using R12 or older.
SVN Revision: 2736
This commit is contained in:
parent
bde4b7b057
commit
eca650efac
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
|
||||||
init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
|
init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) ->
|
||||||
SockOpts2 = case erlang:system_info(otp_release) >= "R13B" of
|
SockOpts2 = case erlang:system_info(otp_release) >= "R13B" of
|
||||||
true -> [{send_timeout_close, true} | SockOpts];
|
true -> [{send_timeout_close, true} | SockOpts];
|
||||||
false -> []
|
false -> SockOpts
|
||||||
end,
|
end,
|
||||||
Res = gen_tcp:listen(Port, [binary,
|
Res = gen_tcp:listen(Port, [binary,
|
||||||
{packet, 0},
|
{packet, 0},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue