Merge pull request #10959 from qzhuyan/dev/william/remove-depre-quic-config

chore: remove deprecated QUIC listener config
This commit is contained in:
zhongwencool 2023-06-14 23:01:00 +08:00 committed by GitHub
commit 41004e86da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View File

@ -421,10 +421,7 @@ do_start_listener(quic, ListenerName, #{bind := Bind} = Opts) ->
case [A || {quicer, _, _} = A <- application:which_applications()] of
[_] ->
DefAcceptors = erlang:system_info(schedulers_online) * 8,
SSLOpts = maps:merge(
maps:with([certfile, keyfile], Opts),
maps:get(ssl_options, Opts, #{})
),
SSLOpts = maps:get(ssl_options, Opts, #{}),
ListenOpts =
[
{certfile, emqx_schema:naive_env_interpolation(maps:get(certfile, SSLOpts))},

View File

@ -739,7 +739,7 @@ fields("mqtt_quic_listener") ->
sc(
string(),
#{
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
desc => ?DESC(fields_mqtt_quic_listener_certfile),
importance => ?IMPORTANCE_HIDDEN
}
@ -748,7 +748,7 @@ fields("mqtt_quic_listener") ->
sc(
string(),
#{
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
desc => ?DESC(fields_mqtt_quic_listener_keyfile),
importance => ?IMPORTANCE_HIDDEN
}
@ -827,7 +827,7 @@ fields("mqtt_quic_listener") ->
#{
default => 0,
desc => ?DESC(fields_mqtt_quic_listener_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
%% deprecated, use idle_timeout_ms instead
importance => ?IMPORTANCE_HIDDEN
}
@ -844,7 +844,7 @@ fields("mqtt_quic_listener") ->
#{
default => <<"10s">>,
desc => ?DESC(fields_mqtt_quic_listener_handshake_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
%% use handshake_idle_timeout_ms
importance => ?IMPORTANCE_HIDDEN
}