Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 797cfc4

Browse files
committed
Bugfix: After ACK notification, the connection might be closed. Problem was reproduced in combination with ESP Async WebServer.
1 parent 909a3c1 commit 797cfc4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/AsyncTCP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,9 @@ void AsyncClient::_sockPoll(void)
914914

915915
_notifyWrittenBuffers(notifylist, sent_errno);
916916

917+
/* Connection migh be closed after ACK notification. */
918+
if (!connected()) return;
919+
917920
uint32_t now = millis();
918921

919922
// ACK Timeout - simulated by write queue staleness

0 commit comments

Comments
 (0)