Blocking IO in AsyncClient init #3456
Unanswered
cbornet
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems to me that some blocking IO calls are done in
AsyncHTTPTransport
init that callscreate_ssl_context
:ssl.load_cert_chain
os.stat
(through various calls to Path.exists(), Path.isfile(), Path.isdir(), ...)So instantiating an
AsyncClient
blocks the event loop which is bad.Beta Was this translation helpful? Give feedback.
All reactions