Commit edcc54c
fix: downgrade MQTT QoS from 2 to 1 to prevent dropped messages (#33)
QoS 2 (exactly-once) causes receive_maximum_exceeded errors on EMQX v5
during traffic bursts, as the broker's max_awaiting_rel limit (100) gets
overwhelmed. QoS 1 (at-least-once) uses a simpler 2-step handshake with
no awaiting_rel state, eliminating this bottleneck entirely. For chat
messages, at-least-once delivery is sufficient.
Related: emqx/emqx#13399 (broker returns wrong Receive Maximum in CONNACK)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 78a754b commit edcc54c
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments