Jelajahi Sumber

fix: update comment

EMQ-YangM 3 tahun lalu
induk
melakukan
798a6dcfb9
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      apps/emqx_connector/src/emqx_connector_mqtt.erl

+ 5 - 3
apps/emqx_connector/src/emqx_connector_mqtt.erl

@@ -241,9 +241,11 @@ basic_config(#{
         connect_timeout => 30,
         reconnect_interval => ReconnIntv,
         proto_ver => ProtoVer,
-        %% If haporxy enables mqtt connection packet checking,
-        %% then using bridge_mode will directly cause the connection to fail.
-        %% Let's disable bridge_mode.
+        %% Opening bridge_mode will form a non-standard mqtt connection message.
+        %% A load balancing server (such as haproxy) is often set up before the emqx broker server.
+        %% When the load balancing server enables mqtt connection packet inspection,
+        %% non-standard mqtt connection packets will be filtered out by LB.
+        %% So let's disable bridge_mode.
         bridge_mode => false,
         username => User,
         password => Password,