Skip to content

fix: NetworkConfig cached hash was not being regenerated on clients for each unique ConnectionRequestMessage [MTT-4605] #2226

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

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Sep 30, 2022

If a client first connects to one server, then later disconnects from that server, and then in the same runtime instance tries to connect to another server the NetworkConfig hash value would not be regenerated. This resolves that issue.

MTT-4605
#2175

Changelog

  • Fixed: Issue where clients were not rebuilding the NetworkConfig hash value for each unique connection request.

Testing and Documentation

  • Includes unit test.

MTT-4605
This resolves the issue where clients would not regenerate their NetworkConfig's hash value if a client disconnected from one server and tried to join another server.
MTT-4605
This validates that passing false to the NetworkConfig.GetConfig method generates a unique hash value.
MTT-4605
updating the changelog entry with the PR number.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review September 30, 2022 00:15
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner September 30, 2022 00:15
@NoelStephensUnity NoelStephensUnity merged commit 993c3d8 into develop Sep 30, 2022
@NoelStephensUnity NoelStephensUnity deleted the fix/networkconfig-cachec-hash-not-cleared-on-client-mtt-4605 branch September 30, 2022 23:12
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
…or each unique ConnectionRequestMessage [MTT-4605] (Unity-Technologies#2226)

MTT-4605
* fix
This resolves the issue where clients would not regenerate their NetworkConfig's hash value if a client disconnected from one server and tried to join another server.

* test
This validates that passing false to the NetworkConfig.GetConfig method generates a unique hash value.

* update
updating the changelog entry with the PR number.
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