Preserve Wi-Fi reconnect backlogs by client IP
Retain same-IP replies and park one displaced IP backlog for 30 seconds using existing fixed buffers. Cancel old route-owned operations on takeover, preserve partial TCP frames, and cover reconnect isolation and queue limits with regression tests.
This commit is contained in:
1 parent
172d0c7c9f
commit
931cb4928f
12 files changed
+849
-14
No files matched your search
@@ -344,8 +344,12 @@ public:
|
||||
// Other interfaces retain their input until the producer unlocks the route.
|
||||
if (_lockedReplyInterface != nullptr) {
|
||||
if (!isAvailableReplyTarget(_lockedReplyInterface)) return 0;
|
||||
size_t frameSize = _lockedReplyInterface->checkRecvFrame(dest);
|
||||
if (frameSize > 0) _lastRxInterface = _lockedReplyInterface;
|
||||
// A backend may cancel the previous host's stream inside this call
|
||||
// (e.g. WiFi IP takeover), clearing the lock before returning a new
|
||||
// host's first command. Preserve the actual source of that command.
|
||||
BaseSerialInterface* target = _lockedReplyInterface;
|
||||
size_t frameSize = target->checkRecvFrame(dest);
|
||||
if (frameSize > 0) _lastRxInterface = target;
|
||||
return frameSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user