Commit bea303f
authored
fix: connection approval cannot exceed mtu size (#3564)
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 `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.1 parent 98b2b9f commit bea303f
File tree
3 files changed
+11
-6
lines changed- com.unity.netcode.gameobjects
- Runtime/Connection
- Tests/Runtime
3 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| |||
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
0 commit comments