Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thalesmg
Copy link
Contributor

Similar to #279

This time, the error is a bit different, but the effect is the same:

18:17:09.437 [info] [reason: {:tls_alert, {:certificate_revoked, ~c"TLS client: In state connection received SERVER ALERT: Fatal - Certificate Revoked\n"}}, msg: ~c"failed_to_send_connect_packet", clientid: "emqtt-erlang-9e2056f5415da439bfce"]
Testing apps.emqx.emqx_crl_cache_SUITE: *** FAILED test case 1 ***
%%% emqx_crl_cache_SUITE ==> t_revoked: FAILED
%%% emqx_crl_cache_SUITE ==> {{case_clause,{error,connack_timeout}},
 [{emqx_crl_cache_SUITE,t_revoked,1,
                        [{file,"test/emqx_crl_cache_SUITE.erl"},{line,969}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1303}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1235}]}]}

Simple to reproduce with a small sleep before mqtt_connect:

modified   src/emqtt.erl
@@ -1032,6 +1032,7 @@ do_connect(ConnMod, #state{pending_calls = Pendings,
                                            socket = NewSock,
                                            pending_calls = NewPendings
                                           }),
+            timer:sleep(50),
             case mqtt_connect(State3) of
                 {ok, State4} ->
                     {ok, State4};

…_alert`)

Similar to emqx#279

This time, the error is a bit different, but the effect is the same:

```
18:17:09.437 [info] [reason: {:tls_alert, {:certificate_revoked, ~c"TLS client: In state connection received SERVER ALERT: Fatal - Certificate Revoked\n"}}, msg: ~c"failed_to_send_connect_packet", clientid: "emqtt-erlang-9e2056f5415da439bfce"]
```

```
Testing apps.emqx.emqx_crl_cache_SUITE: *** FAILED test case 1 ***
%%% emqx_crl_cache_SUITE ==> t_revoked: FAILED
%%% emqx_crl_cache_SUITE ==> {{case_clause,{error,connack_timeout}},
 [{emqx_crl_cache_SUITE,t_revoked,1,
                        [{file,"test/emqx_crl_cache_SUITE.erl"},{line,969}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1303}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1235}]}]}
```

Simple to reproduce with a small sleep before `mqtt_connect`:

```diff
modified   src/emqtt.erl
@@ -1032,6 +1032,7 @@ do_connect(ConnMod, #state{pending_calls = Pendings,
                                            socket = NewSock,
                                            pending_calls = NewPendings
                                           }),
+            timer:sleep(50),
             case mqtt_connect(State3) of
                 {ok, State4} ->
                     {ok, State4};
```
thalesmg added a commit to thalesmg/emqx that referenced this pull request Jun 26, 2025
See emqx/emqtt#286

https://github.com/emqx/emqx/actions/runs/15908476851/job/44870052354?pr=15436#step:5:532

```
%%% emqx_crl_cache_SUITE ==> t_revoked: FAILED
%%% emqx_crl_cache_SUITE ==> {{case_clause,{error,connack_timeout}},
 [{emqx_crl_cache_SUITE,t_revoked,1,
                        [{file,"/__w/emqx/emqx/apps/emqx/test/emqx_crl_cache_SUITE.erl"},
                         {line,952}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1303}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1235}]}]}
```
thalesmg added 2 commits June 26, 2025 15:38
emqx now uses 27 features (such as triple quote strings in `-doc` attributes), and fails
to compile on otp 26.
@thalesmg thalesmg force-pushed the 20250626-fix-connack-timeout-again branch from 95d5c0d to 7365129 Compare June 26, 2025 18:38
@thalesmg thalesmg merged commit 5a93b9c into emqx:master Jun 27, 2025
12 checks passed
@thalesmg thalesmg deleted the 20250626-fix-connack-timeout-again branch June 27, 2025 11:58
@thalesmg
Copy link
Contributor Author

tagged 1.14.5

thalesmg added a commit to thalesmg/emqx that referenced this pull request Jun 27, 2025
See emqx/emqtt#286

https://github.com/emqx/emqx/actions/runs/15908476851/job/44870052354?pr=15436#step:5:532

```
%%% emqx_crl_cache_SUITE ==> t_revoked: FAILED
%%% emqx_crl_cache_SUITE ==> {{case_clause,{error,connack_timeout}},
 [{emqx_crl_cache_SUITE,t_revoked,1,
                        [{file,"/__w/emqx/emqx/apps/emqx/test/emqx_crl_cache_SUITE.erl"},
                         {line,952}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1303}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1235}]}]}
```
thalesmg added a commit to thalesmg/emqx that referenced this pull request Jun 27, 2025
See emqx/emqtt#286

https://github.com/emqx/emqx/actions/runs/15908476851/job/44870052354?pr=15436#step:5:532

```
%%% emqx_crl_cache_SUITE ==> t_revoked: FAILED
%%% emqx_crl_cache_SUITE ==> {{case_clause,{error,connack_timeout}},
 [{emqx_crl_cache_SUITE,t_revoked,1,
                        [{file,"/__w/emqx/emqx/apps/emqx/test/emqx_crl_cache_SUITE.erl"},
                         {line,952}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1303}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1235}]}]}
```
@thalesmg thalesmg mentioned this pull request Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants