-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Allow configuring max_incomplete_event_size for h11 implementation #1514
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've studied the issue again. I have questions:
- Instead of accepting this PR, can we just work with
httptools
when there's a need for larger headers? - Can we improve the tests that have conditionals in the body of the test? 🤔
If using httptools
is an alternative, then we can also document this.
I think it's fair to have this flag for people not able to run uvicorn with C extensions |
Perfect. 👍 |
Co-authored-by: Marcelo Trylesinski <[email protected]>
Co-authored-by: Marcelo Trylesinski <[email protected]>
@Kludex let me know if these changes are closer to what you had in mind with the conditionals change in tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As reference: https://h11.readthedocs.io/en/latest/api.html?highlight=max-incomplete-event-size#the-connection-object
After seeing the new tests, I think we either should remove the parametrize
, or go back to the previous: https://github.com/encode/uvicorn/pull/1514/files/bf74201a9887f2b2de5d5948f8f4a0a4aaf46fd3... I'll let @euri10 decide what he likes more.
it feels ok to me this way |
I've tweaked the tests a bit to be more clear... Can you check what you think @euri10 ? If you're fine, please merge it. |
|
||
|
||
@pytest.mark.anyio | ||
@pytest.mark.skipif(HttpToolsProtocol is None, reason="httptools is not installed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
…ncode#1514) * Solves encode#1234 * Update docs/settings.md Co-authored-by: Marcelo Trylesinski <[email protected]> * Update uvicorn/main.py Co-authored-by: Marcelo Trylesinski <[email protected]> * Fix lint * Fixing tests * Tweak tests a bit * Remove event_loop fixture Co-authored-by: Marcelo Trylesinski <[email protected]>
…1514) * Solves #1234 * Update docs/settings.md Co-authored-by: Marcelo Trylesinski <[email protected]> * Update uvicorn/main.py Co-authored-by: Marcelo Trylesinski <[email protected]> * Fix lint * Fixing tests * Tweak tests a bit * Remove event_loop fixture Co-authored-by: Marcelo Trylesinski <[email protected]>
PR to help solve #1234