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

Fix Issues with Offline State #49

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Kas-tle
Copy link
Contributor

@Kas-tle Kas-tle commented Sep 24, 2024

This PR fixes an issue with the security state not being updated. Some servers (e.g. Enchanted Dragons) send a cookie in their first Open Connection Reply 1, but later send another Open Connection Reply 1 that omits the cookie. In such a case, we should also omit the cookie from our subsequent Open Connection Request 2 responses.

Secondly, RakClientOfflineHandler currently re-sends either Open Connection Request 1 or Open Connection Request 2 depending on the handshake state. The Vanilla client, however, will only send Open Connection Request 1 as a retry. Open Request 2 is only sent as a direct response to Open Connection Reply 1. This PR brings the client inline with this behavior in compatibility mode.

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.

1 participant