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(connlib): remove outdated assertion due to possibility of network changes #4222

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

conectado
Copy link
Collaborator

found while working on #4163

Copy link

vercel bot commented Mar 19, 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 20, 2024 1:45am

Copy link

github-actions bot commented Mar 19, 2024

Terraform Cloud Plan Output

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

Terraform Cloud Plan

… changes and drain events after refreshing allocations on reconnect
@conectado conectado force-pushed the fix/remove-outdated-assertion branch from cd4446c to 45fd085 Compare March 19, 2024 23:15
@@ -144,6 +144,8 @@ where
for allocation in self.allocations.values_mut() {
allocation.refresh(now);
}

self.bindings_and_allocations_drain_events();
Copy link
Member

Choose a reason for hiding this comment

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

This is actually wrong. refresh is async so we don't have any events here. But we should add this function to the top of poll_event to ensure we drain them in time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should I do it with this PR?

Copy link
Member

Choose a reason for hiding this comment

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

If you want to. I just don't want to add this here because it is pointless :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added :)

Copy link

github-actions bot commented Mar 19, 2024

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 221.8 MiB (-0%) 223.5 MiB (-0%) 217 (-14%)
direct-tcp-server2client 222.9 MiB (-3%) 224.2 MiB (-3%) 286 (-32%)
relayed-tcp-client2server 146.0 MiB (-2%) 146.7 MiB (-2%) 154 (+9%)
relayed-tcp-server2client 155.2 MiB (+5%) 155.7 MiB (+5%) 181 (+8%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (+0%) 0.03ms (-88%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (-0%) 0.01ms (+31%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (-0%) 0.10ms (+34%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (-0%) 0.05ms (-7%) 0.00% (NaN%)

@thomaseizinger
Copy link
Member

@conectado That seems to break the snownet tests as those are very strict on what gets emitted when. I reckon just remove it for now. We might remove those tests soon and I don't want to block this on it.

Also, your PR title needs to be updated to match the implementation of the PR.

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.

ACK modulo CI

@conectado conectado force-pushed the fix/remove-outdated-assertion branch 2 times, most recently from 19a6a88 to 3537718 Compare March 20, 2024 01:53
@conectado conectado changed the title fix(connlib): remove outdated assertion due to possibility of network changes and drain events after refreshing allocations on reconnect fix(connlib): remove outdated assertion due to possibility of network changes Mar 20, 2024
@conectado conectado added this pull request to the merge queue Mar 20, 2024
Merged via the queue into main with commit fa387d0 Mar 20, 2024
271 checks passed
@conectado conectado deleted the fix/remove-outdated-assertion branch March 20, 2024 02:16
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