From 2db174f7bb43dc0dc0f174a30e2221e4cefba593 Mon Sep 17 00:00:00 2001 From: Elect Date: Mon, 21 Aug 2023 15:31:41 +0700 Subject: [PATCH] set HTTP_TCP_BUFFER_SIZE to 2048 --- cores/esp8266/CommonHFile.h | 0 libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 cores/esp8266/CommonHFile.h diff --git a/cores/esp8266/CommonHFile.h b/cores/esp8266/CommonHFile.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h b/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h index bc8a42d33e..c1ccc2c4c6 100644 --- a/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h +++ b/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h @@ -60,7 +60,8 @@ constexpr int HTTPC_ERROR_CONNECTION_REFUSED __attribute__((deprecated)) = HTTPC_ERROR_CONNECTION_FAILED; /// size for the stream handling -#define HTTP_TCP_BUFFER_SIZE (1460) +//#define HTTP_TCP_BUFFER_SIZE (1460) +#define HTTP_TCP_BUFFER_SIZE (2048) /// HTTP codes see RFC7231 typedef enum {