Parcourir la source

Increase MQTT recv buffer size to support MTU 1500 (#2308) (#2544)

Any TCP packet with more than 1024 bytes of payload was silently
dropped. With MTU of 1500 the TCP payload can be up to 1460 bytes
(1500 - 20(IP hdr) - 20(TCP hdr))
Johan Ström il y a 5 ans
Parent
commit
33613be550
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/modules/mqtt.c

+ 1 - 1
app/modules/mqtt.c

@@ -17,7 +17,7 @@
 
 #include "user_interface.h"
 
-#define MQTT_BUF_SIZE 1024
+#define MQTT_BUF_SIZE 1460
 #define MQTT_DEFAULT_KEEPALIVE 60
 #define MQTT_MAX_CLIENT_LEN   64
 #define MQTT_MAX_USER_LEN     64