| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Use a single handshake thread to avoid OpenSSL-internal data races on shared SSL_CTX state, while keeping multiple togglers to exercise the sni_callback setter race from pythongh-149816.
|
A few other related changes:
|
Sorry, something went wrong.
|
@colesbury Thanks for the test improvements!
Running it for at least 0.1s does dramatically increase the consistency, although I've been told we shouldn't add static delays to the tests, even as small as 0.1s. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for the fix! I have a suggestion to avoid depending on clock time:
Sorry, something went wrong.
|
|
||
| def do_handshakes(): | ||
| while not done.is_set(): | ||
| while time.monotonic() < deadline: |
There was a problem hiding this comment.
What do you think about running a fixed number of iterations here, and when this thread setting an event when it's done?
Sorry, something went wrong.
Strange. That's already the 3rd attempt. Anyway, I restarted the failing job. |
Sorry, something went wrong.
|
I am merging this PR as it is and will implement the suggestion to make it fixed iterations in a followup. |
Sorry, something went wrong.
|
Thanks @colesbury for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
GH-153269 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-153270 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Use a single handshake thread to avoid OpenSSL-internal data races on shared SSL_CTX state, while keeping multiple togglers to exercise the sni_callback setter race from gh-149816.