Skip to content

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Jul 28, 2025

This PR resolves the issue where a NetworkConfig.ConnectionData that caused the ConnectionRequestMessage to exceed the transport's MTU size would result in a buffer overflow error by updating ConnectionRequestMessage to use the ReliableFragmentedSequenced pipeline as opposed to the ReliableSequenced pipeline.

MTTB-1467

Changelog

  • Fixed: issue where NetworkConfig.ConnectionData could cause the ConnectionRequestMessage to exceed the transport's MTU size and would result in a buffer overflow error.

Testing and Documentation

  • Includes modifications to ConnectionApproval integration tests to use a > MTU size NetworkConfig.ConnectionData.
  • No documentation changes or additions were necessary.

Backport

This is a back port of #3564.

This resolves the issue where a ConnectionRequestMessage could not exceed the transport MTU size because it was using the ReliableSequenced and not the ReliableFragmentedSequenced pipeline.
Adjusting the ConnectionApproval tests to use a NetworkConfig.ConnectionData array that is larger than the typical ~1300 byte MTU size (not taking headers into consideration).
adding change log entry.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review July 28, 2025 18:04
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner July 28, 2025 18:04
}

SendMessage(ref message, NetworkDelivery.ReliableSequenced, NetworkManager.ServerClientId);
SendMessage(ref message, NetworkDelivery.ReliableFragmentedSequenced, NetworkManager.ServerClientId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮 That'd do it

@EmandM EmandM enabled auto-merge (squash) July 30, 2025 15:38
@EmandM EmandM merged commit bb9dbf1 into develop Jul 30, 2025
26 checks passed
@EmandM EmandM deleted the fix/connection-approval-cannot-exceed-MTU-size-backport branch July 30, 2025 18:40
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