fix(listener): remove partial_chain in wss opts
This commit is contained in:
parent
4e9c1ec0c9
commit
a29a43e5fc
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue