[PR #3313] fix: recover from stalled VPN reconnects #3187

Open
opened 2026-10-25 04:15:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3313
Author: @Maokaman1
Created: 10/22/2026
Status: 🔄 Open

Base: dev ← Head: fix/windows-reconnect-recovery


📝 Commits (1)

  • 454e883 fix: recover from stalled VPN reconnects

📊 Changes

20 files changed (+695 additions, -98 deletions)

View changed files

📝 client/core/protocols/wireGuardProtocol.cpp (+11 -1)
📝 client/core/utils/errorCodes.h (+1 -0)
📝 client/core/utils/errorStrings.cpp (+1 -0)
📝 client/daemon/daemon.cpp (+1 -0)
📝 client/mozilla/controllerimpl.h (+2 -0)
📝 client/mozilla/localsocketcontroller.cpp (+84 -11)
📝 client/mozilla/localsocketcontroller.h (+8 -1)
➕ client/platforms/windows/daemon/windowstunnelpipe.h (+94 -0)
📝 client/platforms/windows/daemon/windowstunnelservice.cpp (+3 -46)
📝 client/platforms/windows/daemon/wireguardutilswindows.cpp (+3 -2)
📝 client/tests/CMakeLists.txt (+3 -0)
➕ client/tests/recovery/CMakeLists.txt (+53 -0)
➕ client/tests/recovery/testLocalSocketRecovery.cpp (+222 -0)
➕ client/tests/recovery/testTunnelPipe.cpp (+149 -0)
📝 client/vpnConnection.cpp (+35 -18)
📝 service/server/CMakeLists.txt (+1 -0)
📝 service/server/localserver.cpp (+16 -18)
📝 service/server/localserver.h (+4 -0)
📝 service/server/systemservice.cpp (+3 -0)
📝 service/server/systemservice.h (+1 -1)

📄 Description

Fixes #1990

Prevent reconnect attempts from spinning indefinitely by adding connection and tunnel-request timeouts, handling daemon failures, and fixing reconnect sequencing and service cleanup.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3313 **Author:** [@Maokaman1](https://github.com/Maokaman1) **Created:** 10/22/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/windows-reconnect-recovery` --- ### 📝 Commits (1) - [`454e883`](https://github.com/amnezia-vpn/amnezia-client/commit/454e883643fc712bff04d7dbacf4780d6b9ce8a0) fix: recover from stalled VPN reconnects ### 📊 Changes **20 files changed** (+695 additions, -98 deletions) <details> <summary>View changed files</summary> 📝 `client/core/protocols/wireGuardProtocol.cpp` (+11 -1) 📝 `client/core/utils/errorCodes.h` (+1 -0) 📝 `client/core/utils/errorStrings.cpp` (+1 -0) 📝 `client/daemon/daemon.cpp` (+1 -0) 📝 `client/mozilla/controllerimpl.h` (+2 -0) 📝 `client/mozilla/localsocketcontroller.cpp` (+84 -11) 📝 `client/mozilla/localsocketcontroller.h` (+8 -1) ➕ `client/platforms/windows/daemon/windowstunnelpipe.h` (+94 -0) 📝 `client/platforms/windows/daemon/windowstunnelservice.cpp` (+3 -46) 📝 `client/platforms/windows/daemon/wireguardutilswindows.cpp` (+3 -2) 📝 `client/tests/CMakeLists.txt` (+3 -0) ➕ `client/tests/recovery/CMakeLists.txt` (+53 -0) ➕ `client/tests/recovery/testLocalSocketRecovery.cpp` (+222 -0) ➕ `client/tests/recovery/testTunnelPipe.cpp` (+149 -0) 📝 `client/vpnConnection.cpp` (+35 -18) 📝 `service/server/CMakeLists.txt` (+1 -0) 📝 `service/server/localserver.cpp` (+16 -18) 📝 `service/server/localserver.h` (+4 -0) 📝 `service/server/systemservice.cpp` (+3 -0) 📝 `service/server/systemservice.h` (+1 -1) </details> ### 📄 Description Fixes #1990 Prevent reconnect attempts from spinning indefinitely by adding connection and tunnel-request timeouts, handling daemon failures, and fixing reconnect sequencing and service cleanup. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3187
No description provided.