Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/v3.1.2 #21

Merged
merged 11 commits into from
May 12, 2018
Prev Previous commit
Next Next commit
修正网络模块发送包可能无序、发送大包可能被裁剪丢失的问题
  • Loading branch information
Jiang Yin committed Mar 13, 2018
commit 4ae83a5c7405906cd7e4616cf8cbc177ae96679f
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public bool IsFree
{
get
{
return m_PacketBytes == null;
return m_PacketBytes == null && m_Offset == 0 && m_Length == 0;
}
}

Expand Down
4 changes: 0 additions & 4 deletions GameFramework/Network/NetworkManager.NetworkChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,6 @@ private void ProcessSend()

throw;
}
finally
{
ReferencePool.Release(packet.GetType(), packet);
}

if (packetBytes == null || packetBytes.Length <= 0)
{
Expand Down