-
Notifications
You must be signed in to change notification settings - Fork 26
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
VPN server failure recovery pixels + reasserting fix #791
VPN server failure recovery pixels + reasserting fix #791
Conversation
9e2c20e
to
cb69e94
Compare
f448f67
to
eb466b4
Compare
eb466b4
to
d4338ca
Compare
@@ -846,8 +847,7 @@ open class PacketTunnelProvider: NEPacketTunnelProvider { | |||
// MARK: - App Messages | |||
|
|||
// swiftlint:disable:next cyclomatic_complexity | |||
@MainActor | |||
public override func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)? = nil) { | |||
@MainActor public override func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)? = nil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The annotation line was confusing swiftlint
@@ -53,17 +63,21 @@ actor FailureRecoveryHandler: FailureRecoveryHandling { | |||
} | |||
|
|||
private let deviceManager: NetworkProtectionDeviceManagement | |||
private weak var reassertingControl: Reasserting? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the reasserting control to a. Invert control and improve testability and b. To fix an issue where reconnection wouldn’t happen if there was no update to the config
@quanganhdo This has all been merged into #786 |
Required:
Task/Issue URL: https://app.asana.com/0/0/1206939413299475/f
iOS PR: duckduckgo/iOS#2779
macOS PR: https://github.com/duckduckgo/macos-browser/pull/2657
What kind of version bump will this require?: Major
Description:
Adds Pixels described in the task to monitor how often VPN server failure recovery is happening and succeeding.
Steps to test this PR:
OS Testing:
—
Internal references:
Software Engineering Expectations
Technical Design Template