We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好,在使用UnityWebSocket库的过程中,我发现如果同一时间内大量调用SendAsync会出现只有一条请求发送出去的问题。原因我也找到了,是在NetworkManager.NetworkChannelBase.cs中的 `protected virtual bool ProcessSend() { if (m_SendState.Stream.Length > 0 || m_SendPacketPool.Count <= 0) { Log.Error($"[network request] NetworkChannelBase.ProcessSend {m_SendState.Stream.Length > 0} || {m_SendPacketPool.Count <= 0}"); return false; }
while (m_SendPacketPool.Count > 0)
` 最后这个while需要换成if,不然就会出现我说的问题。
The text was updated successfully, but these errors were encountered:
感谢指正,会尽快修复!
Sorry, something went wrong.
No branches or pull requests
你好,在使用UnityWebSocket库的过程中,我发现如果同一时间内大量调用SendAsync会出现只有一条请求发送出去的问题。原因我也找到了,是在NetworkManager.NetworkChannelBase.cs中的
`protected virtual bool ProcessSend()
{
if (m_SendState.Stream.Length > 0 || m_SendPacketPool.Count <= 0)
{
Log.Error($"[network request] NetworkChannelBase.ProcessSend {m_SendState.Stream.Length > 0} || {m_SendPacketPool.Count <= 0}");
return false;
}
`
最后这个while需要换成if,不然就会出现我说的问题。
The text was updated successfully, but these errors were encountered: