Skip to content

AutoReconnect: delay reconnect when account is already connected - #367

Open
VadimTotok wants to merge 2 commits into
rfresh2:1.21.4from
VadimTotok:fix/auto-reconnect-already-connected
Open

VadimTotok wants to merge 2 commits into
rfresh2:1.21.4from
VadimTotok:fix/auto-reconnect-already-connected

Conversation

@VadimTotok

Copy link
Copy Markdown

When the account is already on the server, AutoReconnect retries every 5s forever, spamming logs and login attempts with no chance of success. This adds a dedicated configurable delay (default 300s) for the ALREADY_CONNECTED category so the proxy waits for the session to expire instead of hammering the server. The reason stays reconnectable, so recovery is automatic once the account is released.

@rfresh2

rfresh2 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

there is basically no penalty for "hammering the server", and from my experience its actually what most users want.

but i'm open to exposing the delay as a modifiable variable in the AutoReconnectDecisionEvent so plugins can change it based on factors like reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants