8000 cooldown_on_force_exit by QuentinGruber · Pull Request #2638 · QuentinGruber/h1z1-server · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cooldown_on_force_exit #2638

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

Merged
merged 1 commit into from
Jun 15, 2025
Merged

cooldown_on_force_exit #2638

merged 1 commit into from
Jun 15, 2025

Conversation

QuentinGruber
Copy link
Owner
@QuentinGruber QuentinGruber commented Jun 15, 2025

TL;DR

Added a delay when handling disconnects for clients that didn't properly logout.

What changed?

Modified the disconnect event handler in the ZoneServer2016 class to check if a client has properly logged out before deleting it. If the client did not properly logout, the deletion is now delayed by 10 seconds using setTimeout.

How to test?

  1. Connect to the zone server
  2. Force a disconnect without proper logout (e.g., close the client abruptly)
  3. Verify that the client remains in the system for 10 seconds before being deleted
  4. Test with a proper logout to confirm immediate deletion still works

Why make this change?

This change helps handle unexpected disconnections more gracefully by giving the system time to potentially recover or complete any pending operations before removing the client. This can prevent data loss or inconsistent states that might occur when a client disconnects abruptly without going through the proper logout procedure.

@github-actions github-actions bot added the client-2016 About the 2016 client label Jun 15, 2025
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@QuentinGruber QuentinGruber marked this pull request as ready for review June 15, 2025 15:17
@nymanwow
Copy link
Collaborator

really big update!🔥🔥👨‍🚒

@QuentinGruber QuentinGruber added this to the 0.45.8 milestone Jun 15, 2025
@QuentinGruber QuentinGruber merged commit bf6fcbd into dev Jun 15, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client-2016 About the 2016 client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0