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

Set client state to CS_CONNECTED during UDP downloads #284

Merged
merged 1 commit into from
May 29, 2024

Conversation

Chomenor
Copy link
Contributor

Currently the server leaves clients set to CS_PRIMED during UDP downloads. This means that reliable commands from server to client can be generated, but not sent while the download is in progress. This can lead to a surge of commands being sent when the download finishes, or if enough commands are generated, the client being dropped with a "server command overflow" error.

This fix sets the client to CS_CONNECTED during downloads, which prevents unnecessary commands from being issued until the download completes and the new gamestate is sent.

Downloading clients were already set to CS_CONNECTED if a map change occurred during the download, but with this change it is set for all downloads.

Set client state to CS_CONNECTED instead of CS_PRIMED during UDP downloads. Avoids server-to-client commands from accumulating without being sent, leading to unnecessary commands being sent when the download finishes or possibly the client being dropped with "server command overflow" error.
@ec- ec- merged commit 266d270 into ec-:master May 29, 2024
22 checks passed
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