Skip to content

Commit 89e5a48

Browse files
d-a-vdevyte
authored andcommitted
increase HTTP SEND/POST timeout to 5s (#3971)
1 parent 58937dd commit 89e5a48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ enum HTTPAuthMethod { BASIC_AUTH, DIGEST_AUTH };
4040
#define HTTP_UPLOAD_BUFLEN 2048
4141
#endif
4242

43-
#define HTTP_MAX_DATA_WAIT 1000 //ms to wait for the client to send the request
44-
#define HTTP_MAX_POST_WAIT 1000 //ms to wait for POST data to arrive
43+
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
44+
#define HTTP_MAX_POST_WAIT 5000 //ms to wait for POST data to arrive
4545
#define HTTP_MAX_SEND_WAIT 5000 //ms to wait for data chunk to be ACKed
4646
#define HTTP_MAX_CLOSE_WAIT 2000 //ms to wait for the client to close the connection
4747

0 commit comments

Comments
 (0)