From 33613be550b4e5bbccfb0a0647b13d4a126b988a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Str=C3=B6m?= Date: Tue, 13 Nov 2018 23:43:24 +0100 Subject: [PATCH] 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)) --- app/modules/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/mqtt.c b/app/modules/mqtt.c index eba227a4..8fdedabc 100644 --- a/app/modules/mqtt.c +++ b/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