Replies: 1 comment 5 replies
-
we appreciate it, will investigate asap |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all, massive thanks for this library and all the contributions of the
aio-libs
community 🙏When setting up a persistent client for plugging it on an API lifespan (discussed several times before), I found out that a closed client (outside
ClientCreatorContext
) can still create new connections.The issue (?) is that these connections are "loose" in the sense that the user need to explicitly
await client.close()
otherwise"Unclosed connector"
warnings are raised, eventually leading to an runtime exception when the Python process ends.Should the client forbid spawning new connections if outside a
ClientCreatorContext
?Example code:
Beta Was this translation helpful? Give feedback.
All reactions