-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
客户端关闭,触发OnClosed函数,传入的gnet.Conn很多参数是nil,如localAddr等 #239
Comments
Thanks for opening a new issue. The team has been notified and will review it as soon as possible. |
net.conn = nil 如果是斷線後蠻合理, 如果是runtime就蠻奇怪的, 又是偶發現象 感覺跟gnet本身無關 以上是小弟的小小淺見 |
你用的是 gnet 的 example 吗? |
在 Windows 下? |
1、是参考pushserver的例子,尝试做一个数据推送服务 |
还有一个问题,问什么decode需要通过context来传递参数?在多核环境下,有没有可能出现参数的偏差?两个协程,一个修改了参数,另外一个刚好decode。这个仅仅是感觉,我对go还是不是非常熟悉,在c++的多线程情况下,感觉是有概率出现这种情况的。 |
Decode() 什么时候用 context 了? |
#235 应该修复了这个问题,可以拉一下 master 的最新代码再试试。 |
大神以及各位同仁,你们好
我在测试一个pushServer的sample,在调试的时候,发现在偶发的出现客户端断开的时候,触发的OnClosed函数, 参数gnet.Conn的成员变量很多是nil,不知道这个是不是正常的,因为我刚刚接触gnet框架,不是很熟悉,所以确认一下。
The text was updated successfully, but these errors were encountered: