I have an issue where upon disconnecting from my network server the client seems to have trouble receiving messages from the server when attempting to reconnect. I have a back and forth like this…
Client connects
Server send authentication request
Client send credentials
Server sends response
Client loads game
This works perfect the first time, but i only get the connection message when i attempt to reconnect reconnect. If i restart the app it works fine again, until i disconnect and attempt to reconnect.
Client reconnects
Server send authentication request
…nada
If i call GC.Collect(); before calling Connect again it seems to solve the problem. But only in the editor. When i make player build the problem persists,
Im at a loss for this issue. I cant seem to recreate it in a simple example. Not yet anyway. But i also cant understand why the forced GC solves it in the editor and not the built player.
Iv stripped almost everything but the minimum from my project and still have problems. Although, randomly sometimes its works on the second reconnect, then stops again when i attempt to reconnect a third time