-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Bug ] Network adapters not properly cleaned up on unexpected shutdown, causing connectivity issues #312
Comments
I have been bitten as well from this. It is problematic if it happens to a remote user. |
We also have these kind of problems with client v1.2.0 |
@ithan @rongten @aleex1848 we've released a pre-release version of the windows client that should properly detect and show already established connetions in the system on its start, you can try it out and see if that solves the issue for you: https://github.com/DefGuard/client/releases/tag/v1.2.2-alpha2 (this is a windows only feature currently). |
1.2.3 is out 🫡 |
1 similar comment
1.2.3 is out 🫡 |
We've identified a potential issue with DefGuard that can cause network connectivity problems for users. The problem stems from improper cleanup of network adapters when the application is closed unexpectedly (e.g., during a system shutdown). * This happens on windows 11.
Note: This issue report is based on my understanding as a user of the application. I'm not a Rust developer, nor do I have extensive experience with network adapters. The following is my speculation on the root cause and potential solutions based on observed behavior. Technical details may need verification.
Current behavior
Proposed solution
close_all_connections
function to handle both cached connections and any discovered orphaned adapters.Cache-related issue
The application currently uses an in-memory cache to store active connections:
This in-memory storage is volatile and doesn't persist across application restarts. As a result, when the application starts up after an unexpected shutdown, it has no record of the previously active connections.
Why simply calling
close_all_connections
on startup wouldn't workThe current
close_all_connections
function only operates on the connections stored in the in-memory cache:If this function were called on startup, it would be working with an empty cache and wouldn't be able to identify or clean up any orphaned adapters from previous sessions.
To address this issue, there is a need to implement the proposed solution, which involves scanning for actual network adapters on the system, rather than relying solely on the in-memory cache.
The text was updated successfully, but these errors were encountered: