Explorar o código

feat: quic links to sys crypto

William Yang hai 1 ano
pai
achega
98ed6d5bf8

+ 1 - 1
apps/emqx/rebar.config.script

@@ -25,7 +25,7 @@ end,
 
 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.1.0"}}}.
+    {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.1.6"}}}.
 
 Dialyzer = fun(Config) ->
     {dialyzer, OldDialyzerConfig} = lists:keyfind(dialyzer, 1, Config),

+ 2 - 1
apps/emqx/src/emqx_quic_connection.erl

@@ -179,7 +179,8 @@ new_stream(
         Stream,
         Conn,
         SOpts1,
-        Props
+        Props,
+        [{hibernate_after, 1000}]
     ),
     case quicer:handoff_stream(Stream, NewStreamOwner, {PS, Serialize, Channel}) of
         ok ->

+ 1 - 0
changes/ce/feat-13984.en.md

@@ -0,0 +1 @@
+quicer NIF lib now links to sys libcrypto.

+ 1 - 0
env.sh

@@ -6,3 +6,4 @@ export EMQX_BUILDER=ghcr.io/emqx/emqx-builder/${EMQX_BUILDER_VSN}:${ELIXIR_VSN}-
 export EMQX_DOCKER_BUILD_FROM=ghcr.io/emqx/emqx-builder/${EMQX_BUILDER_VSN}:${ELIXIR_VSN}-${OTP_VSN}-debian12
 export EMQX_DOCKER_RUN_FROM=debian:12-slim
 export QUICER_DOWNLOAD_FROM_RELEASE=1
+export QUICER_TLS_VER=sys

+ 1 - 1
mix.exs

@@ -1176,7 +1176,7 @@ defmodule EMQXUmbrella.MixProject do
     if enable_quicer?(),
       # in conflict with emqx and emqtt
       do: [
-        {:quicer, github: "emqx/quic", tag: "0.1.0", override: true}
+        {:quicer, github: "emqx/quic", tag: "0.1.6", override: true}
       ],
       else: []
   end

+ 1 - 1
rebar.config.erl

@@ -36,7 +36,7 @@ assert_otp() ->
     end.
 
 quicer() ->
-    {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.1.0"}}}.
+    {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.1.6"}}}.
 
 jq() ->
     {jq, {git, "https://github.com/emqx/jq", {tag, "v0.3.12"}}}.