feat(quic): bump to quicer-0.0.303 and emqtt 1.9.7
This commit is contained in:
parent
3b1ae0f3df
commit
64f6220cf5
|
@ -45,7 +45,7 @@
|
||||||
{meck, "0.9.2"},
|
{meck, "0.9.2"},
|
||||||
{proper, "1.4.0"},
|
{proper, "1.4.0"},
|
||||||
{bbmustache, "1.10.0"},
|
{bbmustache, "1.10.0"},
|
||||||
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.1"}}}
|
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.7"}}}
|
||||||
]},
|
]},
|
||||||
{extra_src_dirs, [{"test", [recursive]},
|
{extra_src_dirs, [{"test", [recursive]},
|
||||||
{"integration_test", [recursive]}]}
|
{"integration_test", [recursive]}]}
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
{meck, "0.9.2"},
|
{meck, "0.9.2"},
|
||||||
{proper, "1.4.0"},
|
{proper, "1.4.0"},
|
||||||
{bbmustache, "1.10.0"},
|
{bbmustache, "1.10.0"},
|
||||||
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.1"}}}
|
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.7"}}}
|
||||||
]},
|
]},
|
||||||
{extra_src_dirs, [{"test", [recursive]}]}
|
{extra_src_dirs, [{"test", [recursive]}]}
|
||||||
]}
|
]}
|
||||||
|
|
|
@ -24,7 +24,7 @@ IsQuicSupp = fun() ->
|
||||||
end,
|
end,
|
||||||
|
|
||||||
Bcrypt = {bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {tag, "0.6.0"}}},
|
Bcrypt = {bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {tag, "0.6.0"}}},
|
||||||
Quicer = {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.202"}}}.
|
Quicer = {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.303"}}}.
|
||||||
|
|
||||||
Dialyzer = fun(Config) ->
|
Dialyzer = fun(Config) ->
|
||||||
{dialyzer, OldDialyzerConfig} = lists:keyfind(dialyzer, 1, Config),
|
{dialyzer, OldDialyzerConfig} = lists:keyfind(dialyzer, 1, Config),
|
||||||
|
|
|
@ -184,7 +184,7 @@ peer_send_aborted(Stream, ErrorCode, S) ->
|
||||||
|
|
||||||
-spec peer_send_shutdown(stream_handle(), undefined, cb_data()) -> cb_ret().
|
-spec peer_send_shutdown(stream_handle(), undefined, cb_data()) -> cb_ret().
|
||||||
peer_send_shutdown(Stream, undefined, S) ->
|
peer_send_shutdown(Stream, undefined, S) ->
|
||||||
ok = quicer:async_shutdown_stream(Stream, ?QUIC_STREAM_SHUTDOWN_FLAG_GRACEFUL, 0),
|
_ = quicer:async_shutdown_stream(Stream, ?QUIC_STREAM_SHUTDOWN_FLAG_GRACEFUL, 0),
|
||||||
{ok, S}.
|
{ok, S}.
|
||||||
|
|
||||||
-spec send_complete(stream_handle(), boolean(), cb_data()) -> cb_ret().
|
-spec send_complete(stream_handle(), boolean(), cb_data()) -> cb_ret().
|
||||||
|
|
|
@ -669,22 +669,21 @@ t_multi_streams_packet_malform(Config) ->
|
||||||
case quicer:send(MalformStream, <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0>>) of
|
case quicer:send(MalformStream, <<0, 0, 0, 0, 0, 0, 0, 0, 0, 0>>) of
|
||||||
{ok, 10} -> ok;
|
{ok, 10} -> ok;
|
||||||
{error, cancelled} -> ok;
|
{error, cancelled} -> ok;
|
||||||
{error, stm_send_error, aborted} -> ok
|
{error, stm_send_error, aborted} -> ok;
|
||||||
|
{error, closed} -> ok
|
||||||
end,
|
end,
|
||||||
|
|
||||||
?assert(is_list(emqtt:info(C))),
|
?assert(is_list(emqtt:info(C))),
|
||||||
|
{error, closed} =
|
||||||
{error, stm_send_error, _} =
|
|
||||||
snabbkaffe:retry(
|
snabbkaffe:retry(
|
||||||
10000,
|
10000,
|
||||||
10,
|
10,
|
||||||
fun() ->
|
fun() ->
|
||||||
{error, stm_send_error, _} = quicer:send(
|
{error, closed} = quicer:send(
|
||||||
MalformStream, <<1, 2, 3, 4, 5, 6, 7, 8, 9, 0>>
|
MalformStream, <<1, 2, 3, 4, 5, 6, 7, 8, 9, 0>>
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
|
|
||||||
?assert(is_list(emqtt:info(C))),
|
?assert(is_list(emqtt:info(C))),
|
||||||
|
|
||||||
ok = emqtt:disconnect(C).
|
ok = emqtt:disconnect(C).
|
||||||
|
@ -770,9 +769,9 @@ t_multi_streams_packet_too_large(Config) ->
|
||||||
timeout = recv_pub(1),
|
timeout = recv_pub(1),
|
||||||
?assert(is_list(emqtt:info(C))),
|
?assert(is_list(emqtt:info(C))),
|
||||||
|
|
||||||
%% Connection could be kept
|
%% Connection could be kept but data stream are closed!
|
||||||
{error, stm_send_error, _} = quicer:send(via_stream(PubVia), <<1>>),
|
{error, closed} = quicer:send(via_stream(PubVia), <<1>>),
|
||||||
{error, stm_send_error, _} = quicer:send(via_stream(PubVia2), <<1>>),
|
{error, closed} = quicer:send(via_stream(PubVia2), <<1>>),
|
||||||
%% We could send data over new stream
|
%% We could send data over new stream
|
||||||
{ok, PubVia3} = emqtt:start_data_stream(C, []),
|
{ok, PubVia3} = emqtt:start_data_stream(C, []),
|
||||||
ok = emqtt:publish_async(
|
ok = emqtt:publish_async(
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Upgrade QUIC stack, more features on the way!
|
||||||
|
|
4
mix.exs
4
mix.exs
|
@ -64,7 +64,7 @@ defmodule EMQXUmbrella.MixProject do
|
||||||
{:pbkdf2, github: "emqx/erlang-pbkdf2", tag: "2.0.4", override: true},
|
{:pbkdf2, github: "emqx/erlang-pbkdf2", tag: "2.0.4", override: true},
|
||||||
# maybe forbid to fetch quicer
|
# maybe forbid to fetch quicer
|
||||||
{:emqtt,
|
{:emqtt,
|
||||||
github: "emqx/emqtt", tag: "1.9.1", override: true, system_env: maybe_no_quic_env()},
|
github: "emqx/emqtt", tag: "1.9.7", override: true, system_env: maybe_no_quic_env()},
|
||||||
{:rulesql, github: "emqx/rulesql", tag: "0.1.7"},
|
{:rulesql, github: "emqx/rulesql", tag: "0.1.7"},
|
||||||
{:observer_cli, "1.7.1"},
|
{:observer_cli, "1.7.1"},
|
||||||
{:system_monitor, github: "ieQu1/system_monitor", tag: "3.0.3"},
|
{:system_monitor, github: "ieQu1/system_monitor", tag: "3.0.3"},
|
||||||
|
@ -830,7 +830,7 @@ defmodule EMQXUmbrella.MixProject do
|
||||||
defp quicer_dep() do
|
defp quicer_dep() do
|
||||||
if enable_quicer?(),
|
if enable_quicer?(),
|
||||||
# in conflict with emqx and emqtt
|
# in conflict with emqx and emqtt
|
||||||
do: [{:quicer, github: "emqx/quic", tag: "0.0.202", override: true}],
|
do: [{:quicer, github: "emqx/quic", tag: "0.0.303", override: true}],
|
||||||
else: []
|
else: []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
, {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.4"}}}
|
, {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.4"}}}
|
||||||
, {replayq, {git, "https://github.com/emqx/replayq.git", {tag, "0.3.7"}}}
|
, {replayq, {git, "https://github.com/emqx/replayq.git", {tag, "0.3.7"}}}
|
||||||
, {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}
|
, {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}
|
||||||
, {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.1"}}}
|
, {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.7"}}}
|
||||||
, {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.7"}}}
|
, {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.7"}}}
|
||||||
, {observer_cli, "1.7.1"} % NOTE: depends on recon 2.5.x
|
, {observer_cli, "1.7.1"} % NOTE: depends on recon 2.5.x
|
||||||
, {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}}
|
, {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}}
|
||||||
|
|
|
@ -39,7 +39,7 @@ bcrypt() ->
|
||||||
{bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {tag, "0.6.1"}}}.
|
{bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {tag, "0.6.1"}}}.
|
||||||
|
|
||||||
quicer() ->
|
quicer() ->
|
||||||
{quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.202"}}}.
|
{quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.303"}}}.
|
||||||
|
|
||||||
jq() ->
|
jq() ->
|
||||||
{jq, {git, "https://github.com/emqx/jq", {tag, "v0.3.11"}}}.
|
{jq, {git, "https://github.com/emqx/jq", {tag, "v0.3.11"}}}.
|
||||||
|
|
Loading…
Reference in New Issue