This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Crash for incomplete close of TCP connection. #166
Closed
Description
This is the same issue as this one.
esp8266/Arduino#2750
If the client doesn't have a chance to terminate TCP connection, in this case, ESP8266 goes to deep sleep, then the TCP is left in Established state.
I've tried to abort the TCP when timeout happens, but it doesn't work.
void AsyncWebServerRequest::_onTimeout(uint32_t time){
os_printf("TIMEOUT: %u, state: %s, abort\n", time, _client->stateToString());
_client->abort();
}
Any opinion?