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

Handle PT_DISCONNECT packets more gracefully #6829

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

StephenCWills
Copy link
Member

Since the abort suggests that the owner should not be sending PT_DISCONNECT packets to the player being dropped, the first commit avoids that possibility in the TCP server by disconnecting the client socket before sending the packet.

The second commit treats the error as non-fatal to avoid the possibility of a malicious client triggering a crash in remote clients.

AJenbo
AJenbo previously approved these changes Nov 22, 2023
@AJenbo AJenbo merged commit 73777b2 into diasurgical:master Nov 22, 2023
23 checks passed
@StephenCWills StephenCWills deleted the no-tcp-abort branch November 22, 2023 19:01
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.

3 participants