New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix timeouts when sending large files #533
Comments
Is it possible this has to do with this? https://core.telegram.org/api/optimisation#downloading-files-and-uploading-data-to-the-server It mentions:
I'm not really into this connectionstuff myself, but as far as I read the code, sending of files goes via the same connection_pool as all other tasks. It seems TG is advising against this. |
Unitesting is tricky as this one is hard to recreate. |
@tsnoam do we still need this issue open? Or can we safely say this issue has been resolved? |
@Eldinnie i am not yet convinced that the problem is fully fixed and/or that we don't left overs. I do know that the situation is much better than the past (or people stopped complaining...). |
@tsnoam 👍 |
I have this problem too on my raspberry with ArchLinux Arm. |
@ilverz It doesn't necessarily be the same issue. Have you tried increasing the timeout? |
@tsnoam Actually no, I'm sorry, but how can I set the timeout? |
See the timeout parameter: |
@Eldinnie Solved! Thank you guys, and sorry for the stupid error. |
Hello, I am seeing a massive amount of timeout when sending photos or videos (fails in almost all cases). I see data being transferred, but if it doesn't get transferred within the amount of time specified in the Shouldn't the timeout trigger when the specified amount of time elapses without any data being transferred? It seems that I could not understand exactly the gist of this issue from the description, but it seems very closely related – if that's not the case, I'd be happy to open a new issue. |
Hello, I am seeing massive timeouts when sending photos and videos above 1MB. I did not understand the gist of this issue from the description, but it seems related (if not, I'd be happy to open a new one). I have noticed two things
More on 2.: I see data being transferred and maybe a few seconds more would have allowed the file to go through. Also, with the current behaviour, the timeout should be scaled up with the file size, and this does not make sense to me. |
We've done what we can to fix the issue and it seems like it was (or at least significantly improved to the state that the community is happy). I'm closing this issue to remove "noise" from the issue lists. |
@LizardM4 |
This issue is in order to track the various tasks of a bug in
master
branch.The problem is that urllib3 doesn't honour the
read_timeout
when using a newly created connection. However, with an existing connection it works just fine.Regardless of working with upstream urllib3 to fix the issue, we need to fix the issue for v6.0 milestone.
connect_timeout
= 5 secondsread_timeout
= 5 secondssendDocument
,sendAudio
& similar methods = 20 seconds.The text was updated successfully, but these errors were encountered: