Skip to content

Commit bc87cd4

Browse files
authored
Merge pull request me-no-dev#44 from ESP32Async/fix-ack-timeout
Fix ack timeout trigering upon reconnection (fix me-no-dev#43)
2 parents 1088a8d + 5d9b353 commit bc87cd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AsyncTCP.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,8 @@ int8_t AsyncClient::_connected(tcp_pcb *pcb, int8_t err) {
10531053
if (_pcb) {
10541054
_rx_last_packet = millis();
10551055
}
1056+
_tx_last_packet = 0;
1057+
_rx_last_ack = 0;
10561058
if (_connect_cb) {
10571059
_connect_cb(_connect_cb_arg, this);
10581060
}

0 commit comments

Comments
 (0)