Skip to content

Tunnel can't be stopped and started while the NE is running #51

@ethanndickson

Description

@ethanndickson

When attempting to implement the NEProvider overrides for starting & stopping the tunnel on device sleep and wake, I noticed that sending the StopRequest to the .dylib causes the entire NE process to SIGABRT. We'll need to fix this if we'd like the VPN to start and stop itself on sleep and wake.

For example, this can be reproduced by modifying the sleep handler:

override func sleep(completionHandler: @escaping -> Void) {
    let completionhandler = CompletionWrapper(completionHandler)
    Task {
         try await manager?.stopVPN()
         completionHandler()
    }
}

Then starting the VPN, and putting the device to sleep. After waking, you'll see an internal error indicating a crash of the NE.

We currently only send the StopRequest when shutting down the tunnel, so this crash can't happen with normal use of the app.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy