Closed WGH- closed 5 years ago
This probably needs to be added to the library. As you can see in the logs, it's handled by telethon.
Isn't connection_retries
what we need? It doesn't give us exponential backoff, but at least the bot would keep trying instead of giving up forever.
If retry_delay
is raised to, say, 1 minute, attempting to reconnect every minute doesn't seem too hard on network, isn't it?
Oh yeah, I guess I could make the existing options configurable
Giving up reconnection attempts forever after less than 1 minute of failures doesn't seem like a sane default for a program that is expected to run unattended.
I think there should be exponential backoff capped at 1 hour (or maybe even less).