You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server is running and Broadcasting unreliable message to all connected clients in update function. At this time, any other new client can not connect to this server.
The log shows as below:
============log info=============
KcpClient: connect to 172.xxx.xxx.xxx:7777
KcpConnection: sending Handshake to other end!
KCP: received unreliable message in state Connected. Disconnecting the connection.
KCP Connection: Disconnected.
KCP: OnClientDisconnected
it seems that the code in KcpConnection.cs call the Disconnect() function. [the last line below]
` if (state == KcpState.Authenticated)
{
// only process messages while not paused for Mirror
// scene switching etc.
// -> if an unreliable message comes in while
// paused, simply drop it. it's unreliable!
if (!paused)
{
ArraySegment message = new ArraySegment(buffer, 1, msgLength - 1);
OnData?.Invoke(message);
}
// set last receive time to avoid timeout.
// -> we do this in ANY case even if not enabled.
// a message is a message.
// -> we set last receive time for both reliable and
// unreliable messages. both count.
// otherwise a connection might time out even
// though unreliable were received, but no
// reliable was received.
lastReceiveTime = (uint)refTime.ElapsedMilliseconds;
}
else
{
// should never
Log.Warning($"KCP: received unreliable message in state {state}. Disconnecting the connection.");
Disconnect();
}`
The text was updated successfully, but these errors were encountered:
The server is running and Broadcasting unreliable message to all connected clients in update function. At this time, any other new client can not connect to this server.
The log shows as below:
============log info=============
KcpClient: connect to 172.xxx.xxx.xxx:7777
KcpConnection: sending Handshake to other end!
KCP: received unreliable message in state Connected. Disconnecting the connection.
KCP Connection: Disconnected.
KCP: OnClientDisconnected
it seems that the code in KcpConnection.cs call the Disconnect() function. [the last line below]
` if (state == KcpState.Authenticated)
{
// only process messages while not paused for Mirror
// scene switching etc.
// -> if an unreliable message comes in while
// paused, simply drop it. it's unreliable!
if (!paused)
{
ArraySegment message = new ArraySegment(buffer, 1, msgLength - 1);
OnData?.Invoke(message);
}
The text was updated successfully, but these errors were encountered: