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

Added request body cache to Request.receive #848

Closed
wants to merge 10 commits into from
Closed

Added request body cache to Request.receive #848

wants to merge 10 commits into from

Conversation

nikordaris
Copy link

Adds a request body cache to the receive function that is passed to ASGIApp children. This addresses the root cause of an infinite loop issue described in #847 but does not address the infinite loop itself. There is still a potential need to set a timeout around calling the receive() inside of stream()

@nikordaris
Copy link
Author

This is no longer a viable solution with the changes to StreamResponse in v0.13.3. I have an idea of how to cache the body and form in the scope instead of the instance of Request and keep the receive function pure. I'll open a different PR for this solution.

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.

1 participant