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

WebGL开源库集成问题 #7

Open
dominicwyf opened this issue Feb 27, 2025 · 1 comment
Open

WebGL开源库集成问题 #7

dominicwyf opened this issue Feb 27, 2025 · 1 comment

Comments

@dominicwyf
Copy link

你好,在使用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,不然就会出现我说的问题。

@Me-Maped
Copy link
Owner

感谢指正,会尽快修复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants