I’m using Send to send data between Client and Server.
When I send the data first time it works fine. ( server receive and send reply to client).
But when I send the data for second time it will not work.
It works only if restart the server .
Do I need to clean or somehow consume the Message before send the second time.
something definitely wrong. but unfortunately your information is not enough to proper answer. What do you use? How are you send?
Both the server and client are utilizing the NetworkManager.
The Scenario is as following:
1- start the server and the Client
2- Send data to Server ( click the button)
3- shutdown the Client and then restart it
4- Send the data again. Server not always receive the data . Sometimes it works only after some Delay.
if i shutdown the client and restart the server will not the data .
I have the feeling that the Client data on the server is not cleaned properly . but not sure
2167582–143405–TestServer.zip (102 KB)
2167582–143406–TestClient.zip (103 KB)
I’m noticing that the following erroris on the server side when the client disconnect:
Server event: host=0 event=DisconnectEvent error=6
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
Also the OnServerDisconnect(NetworkConnection conn) not called.