Skip to content
Discussion options

You must be logged in to vote

Thanks for the conversation @jakkdl. ☺️

We could use a custom exception here. I've preferred not to do that because I didn't/don't consider this a catchable case.

is working on replacing aiohttp with httpx, and we would like to handle premature client closings

It's not obvious to me how you're running into this, since aiohttp sensibly enforces strictly context managed client lifetimes.

Edit... Perhaps this helps?... this isn't a retryable network error condition, this is a condition where the Client instance is out-of-scope (?)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jakkdl
Comment options

Answer selected by jakkdl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants