mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
fix otp version check in listen_tcp/5
This commit is contained in:
parent
2a94c68724
commit
f981a53f9a
1 changed files with 5 additions and 3 deletions
|
@ -195,9 +195,11 @@ listen_tcp(PortIP, Module, SockOpts, Port, IPS) ->
|
||||||
ets:delete(listen_sockets, Port),
|
ets:delete(listen_sockets, Port),
|
||||||
ListenSocket;
|
ListenSocket;
|
||||||
_ ->
|
_ ->
|
||||||
SockOpts2 = try erlang:system_info(otp_release) >= "R13B" of
|
SockOpts2 = try erlang:system_info(otp_release) of
|
||||||
true -> [{send_timeout_close, true} | SockOpts];
|
EVsn when EVsn >= "R13B"; EVsn >= "17" ->
|
||||||
false -> SockOpts
|
[{send_timeout_close, true} | SockOpts];
|
||||||
|
_ ->
|
||||||
|
SockOpts
|
||||||
catch
|
catch
|
||||||
_:_ -> []
|
_:_ -> []
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue