We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8249a6 commit c49794fCopy full SHA for c49794f
libraries/WebServer/src/WebServer.cpp
@@ -299,10 +299,10 @@ void WebServer::handleClient() {
299
case HC_WAIT_READ:
300
// Wait for data from client to become available
301
if (_currentClient.available()) {
302
+ // because HTTP_MAX_SEND_WAIT is expressed in milliseconds,
303
+ // it must be divided by 1000
304
+ currentClient.setTimeout(HTTP_MAX_SEND_WAIT / 1000);
305
if (_parseRequest(_currentClient)) {
- // because HTTP_MAX_SEND_WAIT is expressed in milliseconds,
- // it must be divided by 1000
- _currentClient.setTimeout(HTTP_MAX_SEND_WAIT / 1000);
306
_contentLength = CONTENT_LENGTH_NOT_SET;
307
_handleRequest();
308
0 commit comments