Skip to content

Commit

Permalink
Fix for occasional WebServer timeout issues (#8944)
Browse files Browse the repository at this point in the history
Fixes #8941
  • Loading branch information
supersjellie committed Jun 14, 2023
1 parent e05656b commit 8b33e2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,13 @@ void ESP8266WebServerTemplate<ServerType>::serveStatic(const char* uri, FS& fs,
template <typename ServerType>
void ESP8266WebServerTemplate<ServerType>::handleClient() {
if (_currentStatus == HC_NONE) {
ClientType client = _server.accept();
if (!client) {
_currentClient = _server.accept();
if (!_currentClient) {
return;
}

DBGWS("New client\n");

_currentClient = client;
_currentStatus = HC_WAIT_READ;
_statusChange = millis();
}
Expand Down

0 comments on commit 8b33e2e

Please sign in to comment.