async request may raise httpx.ReadTimeout
on stale connection
#3435
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a asyncio application using httpx as connection pool, the http client is used to send request to a local nginx server with tls enabled.
My application have low traffic and may not use http client for a long time (hours).
And I observe that it may raise
httpx.ReadTimeout
fromhttpcore.ReadTimeout
for a long time if the client doesn't have any request for a long time.request -> wait long time-> next request (and the timeout happened here)
at where
await http_client.post("...", headers={...}, data={...})
Beta Was this translation helpful? Give feedback.
All reactions