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
Please fill out the following system information before opening an issue:
What is your question about gnet? socktoaddr.go的int2decimal函数调用bsPool.Get(32)从sync.Pool取出来使用,但是没看到相应的Put,这样不会造成“泄漏”问题吗
The text was updated successfully, but these errors were encountered:
这里确实没有 Put 回去,需要修复一下。
Sorry, something went wrong.
50406b3
谢谢指出这个问题~
这种size很小并且不需要跨协程传递的buffer,可能直接make([]byte, ...)比较好,因为size小不会导致协程栈扩容和逃逸,局部变量栈pop的时候也就回收了、不用太担心gc或者扩容的高成本
opt: put the bytes of net.Addr.Zone back to pool when connection is c…
985a710
…losed Fixes panjf2000#364
panjf2000
No branches or pull requests
Please fill out the following system information before opening an issue:
What is your question about gnet?
socktoaddr.go的int2decimal函数调用bsPool.Get(32)从sync.Pool取出来使用,但是没看到相应的Put,这样不会造成“泄漏”问题吗
The text was updated successfully, but these errors were encountered: