-
-
Notifications
You must be signed in to change notification settings - Fork 875
explicitly start ASGI run with empty context #2742
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
base: main
Are you sure you want to change the base?
Conversation
|
This does make sense, but do you know why it happens? |
|
@Kludex I was wrong. This is a bug in |
|
Ping @Kludex |
|
We need to fix it in httptools as well, and do you think you can create a test that reproduces the issue? |
Can you explain that? Are you talking about Lines 41 to 44 in 8ae0bcb
https://github.com/MagicStack/httptools
Yeah, likely. I haven't written one, because the solution is not the only one that is possible to fix the issue. See #2167 (comment). Can you decide if you want to go with the solution before I put in more work? |
It's a bit unfortunate we need to do it here, but I guess it's fine.
We have a |
There is an open PR python/cpython#141158 that'll hopefully fix this for Python >=3.15. But until that there is no way around doing this in Worse, while writing the test I realized that my attempted fix, i.e. being explicit about an empty context does not work. At least we now know that the test will actually fail on a regression. |
Summary
One possible solution for #2167.
Checklist