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
What is your question about gnet? Please describe your question meticulously.
The text was updated successfully, but these errors were encountered:
服务端一般不会主动关闭socket(除非你自己关闭),只会在读写socket失败的时候关闭,调用 OnClosed 回调,所以一般可以认为是客户端关闭,或者socket出错了。
Sorry, something went wrong.
我们有业务场景需要知道是服务端关闭还是客户端自己关闭 用swoole的话会返回一个reactorId 我能知道是不是客户端断开的
除了你自己调用 c.Close() 之外,gnet server 不会主动关闭一个没有发生错误的 socket。
56b5922
opt: pass the ECONNRESET error to gnet.OnClose() when the peer closes…
0b43fc8
… connection Fixes panjf2000#256
panjf2000
No branches or pull requests
What is your question about gnet?
Please describe your question meticulously.
The text was updated successfully, but these errors were encountered: