Skip to content

Added request body cache to Request.receive#848

Closed
nikordaris wants to merge 10 commits intoKludex:masterfrom
nikordaris:master
Closed

Added request body cache to Request.receive#848
nikordaris wants to merge 10 commits intoKludex:masterfrom
nikordaris:master

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