-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to Set a Timeout for TdApi.DownloadFile in Java with tdlib? #3017
Comments
If you asked for By the way, calls to TDLib never hanging. The response to |
Thank for your answer. For file download requests with specified offset and limit:
|
|
I do not receive any UpdateFile with I tried to download 1 file with 2 requests: (offset 2 limit 83886081) and (offset 83886083 limit 2000) one after another :
I then do not receive any response further.
|
Could you send full log to https://t.me/tdlib_bot? |
I'm working with tdlib in Java and using the TdApi.DownloadFile method with synchronous = true to download files. However, I've encountered an issue where the process sometimes gets stuck indefinitely.
Is there a way to set a timeout for this API call to prevent it from hanging forever? If not, what would be the best approach to handle this situation effectively?
The text was updated successfully, but these errors were encountered: