fix(listener): remove partial_chain in wss opts
This commit is contained in:
parent
3fc99315e0
commit
788cdbc6dd
|
@ -637,8 +637,18 @@ ranch_opts(Type, Opts = #{bind := ListenOn}) ->
|
||||||
MaxConnections = maps:get(max_connections, Opts, 1024),
|
MaxConnections = maps:get(max_connections, Opts, 1024),
|
||||||
SocketOpts =
|
SocketOpts =
|
||||||
case Type of
|
case Type of
|
||||||
wss -> tcp_opts(Opts) ++ proplists:delete(handshake_timeout, ssl_opts(Opts));
|
wss ->
|
||||||
ws -> tcp_opts(Opts)
|
tcp_opts(Opts) ++
|
||||||
|
lists:filter(
|
||||||
|
fun
|
||||||
|
({partial_chain, _}) -> false;
|
||||||
|
({handshake_timeout, _}) -> false;
|
||||||
|
(_) -> true
|
||||||
|
end,
|
||||||
|
ssl_opts(Opts)
|
||||||
|
);
|
||||||
|
ws ->
|
||||||
|
tcp_opts(Opts)
|
||||||
end,
|
end,
|
||||||
#{
|
#{
|
||||||
num_acceptors => NumAcceptors,
|
num_acceptors => NumAcceptors,
|
||||||
|
|
Loading…
Reference in New Issue