8000 Tunnel can't be stopped and started while the NE is running · Issue #51 · coder/coder-desktop-macos · GitHub
[go: up one dir, main page]

Skip to content
Tunnel can't be stopped and started while the NE is running #51
Closed
coder/coder
#16598
< 7E76 div data-testid="issue-metadata-sticky" class="Box-sc-g0xbh4-0 emuTBT js-notification-shelf-offset-top">
@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

    0