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 ConnectionApprovalTests integration tests to use a > MTU size NetworkConfig.ConnectionData.
  • No documentation changes or additions were necessary.

Backport

This needs to be back ported to the v1.x branch.

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).
@NoelStephensUnity NoelStephensUnity changed the title Fix/connection approval cannot exceed mtu size fix: connection approval cannot exceed mtu size Jul 28, 2025
Adding changelog entry.
@NoelStephensUnity NoelStephensUnity added the port:1.x-completed This issue was ported to 1.X branch label Jul 28, 2025
@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
@EmandM EmandM enabled auto-merge (squash) July 30, 2025 15:39
@EmandM EmandM merged commit bea303f into develop-2.0.0 Jul 30, 2025
24 checks passed
@EmandM EmandM deleted the fix/connection-approval-cannot-exceed-MTU-size branch July 30, 2025 17:17
EmandM pushed a commit that referenced this pull request Jul 30, 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](https://jira.unity3d.com/browse/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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port:1.x-completed This issue was ported to 1.X branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants