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
从 Issues 中发现类似的需求还不少:
如果把底层的 net.Conn 暴露出来,就可以使用下面的代码设置超时时间了:
c.NetConn().SetReadDeadline(time.Now().Add(3 * time.Second))
不知道作者有没有考虑这么做呢?
The text was updated successfully, but these errors were encountered:
gnet 底层没有使用 net.Conn,是自己实现的,之前没有做是考虑到应用层实现这个功能也不麻烦,不过这个功能会在 gnet v2 中实现,v2 应该会实现 net.Conn 这个接口的所有方法。
net.Conn
Sorry, something went wrong.
panjf2000
No branches or pull requests
从 Issues 中发现类似的需求还不少:
如果把底层的 net.Conn 暴露出来,就可以使用下面的代码设置超时时间了:
不知道作者有没有考虑这么做呢?
The text was updated successfully, but these errors were encountered: