Skip to content

Commit 910efc5

Browse files
committed
Apply HTTP send and loop stack fixes from 2.0.9
1 parent 44da992 commit 910efc5

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

cores/esp32/main.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@
99
#endif
1010
#endif
1111

12-
#ifndef ARDUINO_LOOP_STACK_SIZE
13-
#ifndef CONFIG_ARDUINO_LOOP_STACK_SIZE
14-
#define ARDUINO_LOOP_STACK_SIZE 8192
15-
#else
16-
#define ARDUINO_LOOP_STACK_SIZE CONFIG_ARDUINO_LOOP_STACK_SIZE
17-
#endif
12+
//#ifndef ARDUINO_LOOP_STACK_SIZE
13+
//#ifndef CONFIG_ARDUINO_LOOP_STACK_SIZE
14+
//#define ARDUINO_LOOP_STACK_SIZE 8192
15+
//#else
16+
//#define ARDUINO_LOOP_STACK_SIZE CONFIG_ARDUINO_LOOP_STACK_SIZE
17+
//#endif
18+
//#endif
19+
20+
#ifdef ARDUINO_LOOP_STACK_SIZE
21+
#undef ARDUINO_LOOP_STACK_SIZE
1822
#endif
23+
#define ARDUINO_LOOP_STACK_SIZE 6144
1924

2025
TaskHandle_t loopTaskHandle = NULL;
2126

libraries/WebServer/src/WebServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum HTTPAuthMethod { BASIC_AUTH, DIGEST_AUTH };
4343

4444
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
4545
#define HTTP_MAX_POST_WAIT 5000 //ms to wait for POST data to arrive
46-
#define HTTP_MAX_SEND_WAIT 5000 //ms to wait for data chunk to be ACKed
46+
#define HTTP_MAX_SEND_WAIT 30000 //ms to wait for data chunk to be ACKed
4747
#define HTTP_MAX_CLOSE_WAIT 2000 //ms to wait for the client to close the connection
4848

4949
#define CONTENT_LENGTH_UNKNOWN ((size_t) -1)

0 commit comments

Comments
 (0)