Commit 9738a6e
fix: Don't accept invalid connections in UnityTransport.Send [1.X] (#3383)
Backport of PR #3382.
## Changelog
- Fixed: Fixed an issue in `UnityTransport` where the transport would
accept sends on invalid connections, leading to a useless memory
allocation and confusing error message.
## Testing and Documentation
- Includes integration test.
- No documentation changes or additions were necessary.
---------
Co-authored-by: michalChrobot <michal.chrobot@unity3d.com>
Co-authored-by: Michał Chrobot <124174716+michalChrobot@users.noreply.github.com>1 parent 56a2f20 commit 9738a6e
File tree
5 files changed
+43
-1
lines changed- com.unity.netcode.gameobjects
- Runtime/Transports/UTP
- Tests/Runtime/Transports
5 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1346 | 1350 | | |
| 1351 | + | |
1347 | 1352 | | |
1348 | 1353 | | |
1349 | 1354 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
39 | 56 | | |
40 | 57 | | |
41 | 58 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
557 | 574 | | |
558 | 575 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2591 | 2591 | | |
2592 | 2592 | | |
2593 | 2593 | | |
| 2594 | + | |
2594 | 2595 | | |
2595 | 2596 | | |
2596 | 2597 | | |
| |||
2617 | 2618 | | |
2618 | 2619 | | |
2619 | 2620 | | |
| 2621 | + | |
2620 | 2622 | | |
2621 | 2623 | | |
2622 | 2624 | | |
| |||
0 commit comments