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))
This commit is contained in:
Johan Ström 2018-11-13 23:43:24 +01:00 committed by Marcel Stör
parent 46671928c0
commit 33613be550
1 changed files with 1 additions and 1 deletions

View File

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