-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feat/kicking inactive #126
Feat/kicking inactive #126
Conversation
Add chat components
Feat/text - compilation errors fixed
someone help me with these merge conflicts please, it should take everything from my branch and discard everything otherwise and I'm not quite sure how to do that |
4946d11
to
b0f456f
Compare
dont merge yet, seems like because of the conflicts now it kicks even when the keep alive has been received |
for some reason the keep alive system suddenly stops running during a sleep, but the stop function is not called?????? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove traces when random stop issue is fixed
looks like a deadlock... |
This PR kicks inactive players and remove them from the universe
Description
Keep alives are now stored in the Incoming and Outgoing Keep alive packet, if the last incoming keep alive is not the same as the last outgoing one the client should be kicked and if a client fails to send a keep alive for 30 its also kicked, also now if it takes more than 2 seconds to read a packet the connection loop will skip to the next iteration to prevent the loop from hanging.
Motivation and Context
This change was implemented to make sure inactive or invalid clients are kicked
How has this been tested?
Ive connected to the server with two clients and disconnected them by turning off their internet, if I turn the interned back on within 30 seconds nothing happens, otherwise the client is kicked.
Screenshots (if appropriate):
Types of changes
Checklist: