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

Don't rely on sleeping in 0-RTT test #1522

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Don't rely on sleeping in 0-RTT test #1522

merged 1 commit into from
Apr 3, 2023

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Apr 1, 2023

This is unnecessarily racy, at least in principle.

This is unnecessarily racy, at least in principle.
@djc djc merged commit 07b1405 into main Apr 3, 2023
@djc djc deleted the 0rtt-test-cleanup branch April 3, 2023 11:43
@djc
Copy link
Member

djc commented Apr 3, 2023

Nice! @nmittler FYI.

@Ralith
Copy link
Collaborator Author

Ralith commented Apr 3, 2023

Tangentially: a common cause of tests getting stuck until a timeout and then passing (which came up in previous related discussion) is relying on the implicit close-on-drop behavior and failing to drop something before calling wait_idle. It can be avoided robustly by closing connections explicitly.

@nmittler
Copy link
Contributor

nmittler commented Apr 4, 2023

@Ralith we should probably also add a test for 0-RTT being rejected here. That's where I'm running into a timing issue in the quinn-boring PR. There is a lower-level test for rejection under quinn-proto, but it doesn't suffer from the same timing problem.

@djc djc mentioned this pull request May 8, 2023
3 tasks
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.

3 participants