Search Issue Tracker
Won't Fix
Votes
0
Found in
5.4.0f3
Issue ID
853897
Regression
No
NetworkConnection.SendWriter overrides previous messages when Server and Client runs on host instance
Reproduction steps:
1. Open attached project "NetworkSendWriter"
2. Open "Test" scene
3. Hit Play
Expected result:
Client receives 4 messages with values "1" and "2" ("From Server" messages in console)
Actual result:
Client receives 4 messages with value "2"
When Server and Client is on the same game instance (LAN Host) and Server sends message to the Client, all the messages are received together (Client RegisterHandler callback is not intercepting Server code) and that is where the issue occurs. However, when Client sends a message to the Server, Servers NetworkServer.RegisterHandler callback intercepts in code execution and handles the message. Therefore, the second message is also handled properly.
This doesn't occur on client launched on different game instance.
Reproduced on 5.2.5f1, 5.3.6p8, 5.4.0f3, 5.4.3f1, 5.5.0f1, 5.6.0a5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
Resolution Note:
Mass closure of UNET Bugs.
As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
Closing this bug as part of cleaning-up the Bug List.
If you feel this bug is really a road-blocker, you can reopen the bug and we will work on this one.
For more information and next steps see this [blog post](https://blogs.unity3d.com/2018/08/02/evolving-multiplayer-games-beyond-unet/) and the [FAQ](https://support.unity3d.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ)