Randomly frozen while downloading files #947
Answered
by
tomchristie
scruel
asked this question in
Potential Issue
-
I found that httpx will be easily hang even I set the timeout parameter... After debugging, I found that the program will be paused at Stack trace:
|
Beta Was this translation helpful? Give feedback.
Answered by
tomchristie
Aug 30, 2024
Replies: 1 comment 4 replies
-
Could you provide a reproducible example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@scruel I'm not seeing that reproduce. Perhaps you were being throttled by the server and ending up with a slow download.
Note that
timeout=120
will set the connect and socket timeouts - it's not an overall response timeout.httpcore/httpcore/_backends/sync.py
Lines 125 to 126 in ba3f942
An overall response timeout would be a great feature, and we're looking into it... encode/httpx#1450