Przeglądaj źródła

Merge pull request #13754 from id/20240903-fix-websocket-conn-crash

fix(ws): websocket connection crash when stats are sent to $SYS topic
Ivan Dyachkov 1 rok temu
rodzic
commit
72828e3ad1

+ 3 - 3
apps/emqx/src/emqx_ws_connection.erl

@@ -810,9 +810,9 @@ handle_outgoing(
                 get_active_n(Type, Listener)
         of
             true ->
-                Cnt = emqx_pd:reset_counter(outgoing_pubs),
-                Oct = emqx_pd:reset_counter(outgoing_bytes),
-                postpone({check_gc, Cnt, Oct}, State);
+                CntPubs = emqx_pd:reset_counter(outgoing_pubs),
+                CntBytes = emqx_pd:reset_counter(outgoing_bytes),
+                postpone({check_gc, CntPubs, CntBytes}, State);
             false ->
                 State
         end,

+ 1 - 0
changes/ce/fix-13754.en.md

@@ -0,0 +1 @@
+Fixed an issue when websocket connection would break consistently on its own.