fix(listener): remove partial_chain in wss opts

This commit is contained in:
William Yang 2023-10-06 15:07:58 +02:00
parent 4e9c1ec0c9
commit a29a43e5fc
1 changed files with 12 additions and 2 deletions

View File

@ -636,8 +636,18 @@ ranch_opts(Type, Opts = #{bind := ListenOn}) ->
MaxConnections = maps:get(max_connections, Opts, 1024),
SocketOpts =
case Type of
wss -> tcp_opts(Opts) ++ proplists:delete(handshake_timeout, ssl_opts(Opts));
ws -> tcp_opts(Opts)
wss ->
tcp_opts(Opts) ++
lists:filter(
fun
({partial_chain, _}) -> false;
({handshake_timeout, _}) -> false;
(_) -> true
end,
ssl_opts(Opts)
);
ws ->
tcp_opts(Opts)
end,
#{
num_acceptors => NumAcceptors,