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

Remove server from list if unresponsive (down) #5

Closed
longlostnick opened this issue Apr 22, 2012 · 0 comments
Closed

Remove server from list if unresponsive (down) #5

longlostnick opened this issue Apr 22, 2012 · 0 comments

Comments

@longlostnick
Copy link
Owner

this is a way to keep the server list up to par if a server disconnects without being shutdown gracefully.

We should have some way for a server to go through the list ever x minutes and ping each server in the list. If a server has disconnected, remove it from the list.

testConnection in Server should work for pinging, we just might have to set up a new thread class to continuously keep pinging the servers every so often.

This should hopefully help to mitigate the amount of bad servers in a client's list.

EDIT: Instead I think we should just automatically remove it from the list if we ever can't reach it. For example, if we are trying to send out a client's message to propagate on a server and it's not there, we should just remove that server from the list. Title changed appropriately.

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

No branches or pull requests

1 participant