Skip to content
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

Configurable reconnect interval via config #484

Closed
Bluscream opened this issue Jan 21, 2019 · 6 comments
Closed

Configurable reconnect interval via config #484

Bluscream opened this issue Jan 21, 2019 · 6 comments
Projects
Milestone

Comments

@Bluscream
Copy link
Contributor

Bluscream commented Jan 21, 2019

The current dynamic delay is great for endusers but hosters want to offer their customers custom reconnect intervals in the case of a bad connection or in the case the bot is required for security and has b_client_ignore_antiflood anyway.

[bot.connect]
reconnect_interval = "auto" # current system
[bot.connect]
reconnect_interval = "30s" # after 30 seconds
[bot.connect]
reconnect_interval = "-1" # never

etc...

@MisterMisiek
Copy link

How to turn it off

@Splamy
Copy link
Owner

Splamy commented Jan 23, 2019

[bot.connect]
reconnect_interval = [] # off
reconnect_interval = ["30s", "1m", "5m"] # intervals
reconnect_interval = ["30s", "1m", "5m", "repeat"] # or "+" or "loop" to repeat last value indefinitely

@Bluscream
Copy link
Contributor Author

Bluscream commented Jan 23, 2019

That's even better :> i would suggest using repeat last instead of repeat to avoid thinking it would loop over the whole array again

@Bluscream
Copy link
Contributor Author

Bluscream commented Jan 23, 2019

Im thinking about a whole new section for reconnect to allow some other settings maybe 🤔

[bot.reconnect]
ontimeout = ["30s", "repeat last"]
onkick = [] # wether to also autoreconnect if the bot was kicked
onerror = ["1m"] # wether to force trying to reconnect if the server is reachable but returned an error (ex: max clones/banned)
onshutdown = ["5s", "repeat last"] # when the bot was disconnected because of a server shutdown (in case of a server update or crash)

@Splamy Splamy added this to the 0.10.0 milestone Apr 27, 2019
@Splamy Splamy added this to Next on in Roadmap Apr 27, 2019
@BlueF16
Copy link

BlueF16 commented May 3, 2019

This would be useful for me. The current setup doesn't allow me to use it. I've quite a interesting predicament myself. I live somewhere where Teamspeak connecting ports are banned by the ISP so I normally connect to TS server via VPN then shut it off . The current reconnecting system is to slow that the TS BOT can't reconnect fast enough.

Splamy added a commit that referenced this issue May 9, 2019
@Splamy
Copy link
Owner

Splamy commented May 9, 2019

Feature is pushed to develop

@Splamy Splamy pinned this issue May 9, 2019
@Splamy Splamy moved this from Next on to Done in Roadmap May 16, 2019
@Splamy Splamy closed this as completed May 16, 2019
@Splamy Splamy unpinned this issue May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants