Skip to content

Commit 6e8d674

Browse files
committed
Set HTTP_MAX_CLOSE_WAIT equal to other HTTP_xxx_WAIT values
1 parent 45fc796 commit 6e8d674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/WebServer/src/WebServer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ enum HTTPAuthMethod {
6666
#define HTTP_MAX_DATA_WAIT 5000 //ms to wait for the client to send the request
6767
#define HTTP_MAX_POST_WAIT 5000 //ms to wait for POST data to arrive
6868
#define HTTP_MAX_SEND_WAIT 5000 //ms to wait for data chunk to be ACKed
69-
#define HTTP_MAX_CLOSE_WAIT 2000 //ms to wait for the client to close the connection
69+
#define HTTP_MAX_CLOSE_WAIT 5000 //ms to wait for the client to close the connection
7070
#define HTTP_MAX_BASIC_AUTH_LEN 256 // maximum length of a basic Auth base64 encoded username:password string
7171

7272
#define CONTENT_LENGTH_UNKNOWN ((size_t) - 1)
@@ -88,7 +88,7 @@ typedef struct {
8888
HTTPRawStatus status;
8989
size_t totalSize; // content size
9090
size_t currentSize; // size of data currently in buf
91-
uint8_t buf[HTTP_UPLOAD_BUFLEN];
91+
uint8_t buf[HTTP_RAW_BUFLEN];
9292
void *data; // additional data
9393
} HTTPRaw;
9494

0 commit comments

Comments
 (0)