Skip to content
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

fix(apple): spawn new thread for runtime to prevent it from being taken down #4141

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

conectado
Copy link
Collaborator

Using the current thread in apple was causing a crashloop, since connlib's thread was taken down by the network extension after WrappedSession::connect returned.

Now we force the runtime to create the thread to prevent it from being taken down.

Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
firezone ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 5:31am

Copy link

github-actions bot commented Mar 14, 2024

Terraform Cloud Plan Output

Plan: 8 to add, 7 to change, 8 to destroy.

Terraform Cloud Plan

Copy link
Member

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do the same for Android please?

Copy link
Member

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge as is, but we need to do it for Android too.

Copy link

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 205.2 MiB (+2%) 205.9 MiB (+2%) 242 (-8%)
direct-tcp-server2client 205.0 MiB (+2%) 205.5 MiB (+1%) 562 (-19%)
relayed-tcp-client2server 138.5 MiB (+0%) 139.2 MiB (+0%) 164 (-15%)
relayed-tcp-server2client 144.7 MiB (+0%) 145.2 MiB (+0%) 176 (+17%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (-0%) 0.07ms (+19%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (-0%) 0.04ms (-19%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (-0%) 0.15ms (+56%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (+0%) 0.09ms (+16%) 0.00% (NaN%)

@conectado
Copy link
Collaborator Author

conectado commented Mar 14, 2024

Can you do the same for Android please?

@thomaseizinger I was planning to do this in another PR :)

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 14, 2024
@conectado conectado added this pull request to the merge queue Mar 14, 2024
@thomaseizinger
Copy link
Member

Can you do the same for Android please?

@thomaseizinger I was planning to do this in another PR :)

I already sent one!

Merged via the queue into main with commit 91de68f Mar 14, 2024
134 checks passed
@conectado conectado deleted the fix/apple-crashloop branch March 14, 2024 06:00
github-merge-queue bot pushed a commit that referenced this pull request Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants