Commit 33613be5 authored by Johan Ström's avatar Johan Ström Committed by Marcel Stör
Browse files

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))
parent 46671928
...@@ -17,7 +17,7 @@ ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment