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
8ad8eeae88
commit
56f0835d75
12 files changed
+849
-14
No files matched your search
@@ -1896,6 +1896,14 @@ void halt() {
|
||||
WIFI_DEBUG_PRINTLN("WiFi enabled by BOOT/GPIO 0 control");
|
||||
}
|
||||
|
||||
static void cancelCompanionWiFiSession(void*) {
|
||||
if (interface_manager.isReplyRouteFor(&wifi_interface)) {
|
||||
the_mesh.cancelSerialResponseStream();
|
||||
}
|
||||
the_mesh.cancelSerialOperationsForRoute(&wifi_interface);
|
||||
interface_manager.forgetReplyRouteForDisconnected(&wifi_interface);
|
||||
}
|
||||
|
||||
static void stopCompanionWiFiServices() {
|
||||
if (companion_wifi_services_stopped) return;
|
||||
wifi_interface.end();
|
||||
@@ -2778,6 +2786,7 @@ void setup() {
|
||||
|
||||
// add wifi interface
|
||||
#ifdef WIFI_SSID
|
||||
wifi_interface.setSessionChangedCallback(cancelCompanionWiFiSession, nullptr);
|
||||
#if defined(COMPANION_EXCLUSIVE_WIFI_BLE)
|
||||
if (companionTransportWiFiActiveAtBoot()) {
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user