Skip to content

Commit 28dd5dc

Browse files
authored
timeout fix backport
1 parent c49794f commit 28dd5dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WebServer/src/WebServer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ enum HTTPAuthMethod { BASIC_AUTH, DIGEST_AUTH };
4949
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
5050
#define HTTP_MAX_POST_WAIT 5000 //ms to wait for POST data to arrive
5151
#define HTTP_MAX_SEND_WAIT 5000 //ms to wait for data chunk to be ACKed
52-
#define HTTP_MAX_CLOSE_WAIT 2000 //ms to wait for the client to close the connection
52+
#define HTTP_MAX_CLOSE_WAIT 5000 //ms to wait for the client to close the connection
5353

5454
#define CONTENT_LENGTH_UNKNOWN ((size_t) -1)
5555
#define CONTENT_LENGTH_NOT_SET ((size_t) -2)
@@ -71,7 +71,7 @@ typedef struct
7171
HTTPRawStatus status;
7272
size_t totalSize; // content size
7373
size_t currentSize; // size of data currently in buf
74-
uint8_t buf[HTTP_UPLOAD_BUFLEN];
74+
uint8_t buf[HTTP_RAW_BUFLEN];
7575
void *data; // additional data
7676
} HTTPRaw;
7777

0 commit comments

Comments
 (0)