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

Stop using absolute times in HTTP/2 per-thread test #15

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

pquentin
Copy link

Here's a suggestion for a more robust version of a test that has been plaguing urllib3#3324. The idea is that with locking, a precise sequence of events must happen. We still look at the time, but only to make sure that events happen in a specific sequence. That way, even on a super slow CI host, the test should succeed. I can see myself placing callbacks in more places when we implement more HTTP/2 things.

The downside is that it clutters connection.py. But I don't think it's going to slow things down for users, as it's only adding a few ifs.

@pquentin
Copy link
Author

pquentin commented May 16, 2024

Here's the latest CI run with this change: https://github.com/pquentin/urllib3/actions/runs/9108573005

Copy link
Owner

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Quentin!

@sethmlarson sethmlarson merged commit 5b01583 into sethmlarson:http2-probe Jun 3, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants