Minor updates to the WEBServerManager
This commit is contained in:
parent
1d4ff36e45
commit
59b9ae757f
@ -1,7 +1,7 @@
|
|||||||
#include "WEBServerManager.h"
|
#include "WEBServerManager.h"
|
||||||
|
|
||||||
#define DEBUG
|
//#define DEBUG
|
||||||
//#define DEBUG_BODY
|
#define DEBUG_BODY
|
||||||
//#define DEBUG_PARAMETER
|
//#define DEBUG_PARAMETER
|
||||||
//#define DEBUG_CONTENT_LENGTH
|
//#define DEBUG_CONTENT_LENGTH
|
||||||
//#define DEBUG_RAW
|
//#define DEBUG_RAW
|
||||||
@ -98,7 +98,7 @@ boolean WEBServerManager::parseQuery(WiFiClient *wifiClient)
|
|||||||
_httpParserState = INIT;
|
_httpParserState = INIT;
|
||||||
_clientTimeout = millis();
|
_clientTimeout = millis();
|
||||||
boolean slashesOrAntiSlashesOnly(true);
|
boolean slashesOrAntiSlashesOnly(true);
|
||||||
while(wifiClient->available() || ( millis() - _clientTimeout < activeTimeout))
|
while((wifiClient->available() || ( millis() - _clientTimeout < activeTimeout)) && wifiClient->connected())
|
||||||
{
|
{
|
||||||
if(wifiClient->available())
|
if(wifiClient->available())
|
||||||
{
|
{
|
||||||
@ -262,13 +262,13 @@ boolean WEBServerManager::parseQuery(WiFiClient *wifiClient)
|
|||||||
default :
|
default :
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
//Exit condition
|
||||||
if(receivingDone) break;
|
if(receivingDone) break;
|
||||||
if(_httpRequestData.HRM == POST && dataBytes != 0 && dataBytes == dataBytesCounter) break;
|
if(_httpRequestData.HRM == POST && dataBytes != 0 && dataBytes == dataBytesCounter) break;
|
||||||
|
|
||||||
_clientTimeout = millis();
|
_clientTimeout = millis();
|
||||||
}
|
}
|
||||||
ESP.wdtFeed();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(parseBuffer != NULL)
|
if(parseBuffer != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user