-
Notifications
You must be signed in to change notification settings - Fork 569
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 timeout getUpdates #562
Comments
There are no reasons to wait for 5 minutes before sending response. Such big timeouts can make bots too unreliable. |
To optimize performance and minimize resource usage, I'd like to establish a persistent connection and wait indefinitely for a non-empty |
This approach makes your connections unreliable. You may never know that TCP connection has failed and will never return you any data. |
If the worst case happened, re-connecting would be the last option. |
the telegram bot docs says the time unit is in seconds, but when I try to set to 5 minutes (300 sec) it didn't work
The text was updated successfully, but these errors were encountered: