-
Notifications
You must be signed in to change notification settings - Fork 108
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
anyio.EndOfStream can leak up #808
Comments
It seems like we should just add the new exception mapping to the
class EndOfStream(Exception):
"""Raised when trying to read from a stream that has been closed from the other end.""" I believe it would be sufficient to add httpcore/httpcore/_backends/anyio.py Lines 62 to 65 in 6071ea7
and here httpcore/httpcore/_backends/anyio.py Lines 26 to 30 in 6071ea7
|
For bonus points...
|
Hi! Were there any updates to this? |
This is still up for grabs, pull requests welcome. 🤗 @karpetrosyan's comment above points to where we need a couple of entries adding in our exception mapping. |
Really glad to see this issue is closed 🙌! Any idea when the next release will be that includes this? |
Agree completely and would love to know the answer to this question too :) |
Welcome to issue a release PR. For example, see... #892 |
Thank you @tomchristie, Version 1.0.5 (#904) PR is ready for review. |
Originally raised on httpx, referred here
Discussed in encode/httpx#2848
When using httpx as follows:
with a misbehaving server I will occasionally get an anyio.EndOfStream exception thrown from deep in the call stack.
I would expect that this should have been caught by httpx and converted into one of the applicable httpx exceptions (probably one of the StreamErrors)
call stack that I see this in:
The text was updated successfully, but these errors were encountered: