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
Describe the bug 这里的返回值应该是 n + int64(m) ?
To Reproduce Steps to reproduce the behavior: None
Expected behavior 应该返回 n + int64(m)
func (c *conn) WriteTo(w io.Writer) (n int64, err error) { if c.inboundBuffer.IsEmpty() { var m int m, err = w.Write(c.buffer) c.buffer = c.buffer[m:] return int64(m), err } n, err = c.inboundBuffer.WriteTo(w) if err != nil { return } var m int m, err = w.Write(c.buffer) c.buffer = c.buffer[m:] return n + int64(m), err }
Screenshots If applicable, add screenshots to help explain your problem.
System Info (please fill out the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
这里的确有问题,我晚点改一下。
Sorry, something went wrong.
或者你有时间的话也可以提一个 PR。
c9605fc
bug: set the correct number of bytes written by conn.WriteTo() (panjf…
9f76050
…2000#344) Fixes panjf2000#343 Co-authored-by: hujiaming.0927 <hujiaming.0927@bytedance.com>
panjf2000
No branches or pull requests
Describe the bug
这里的返回值应该是 n + int64(m) ?
To Reproduce
Steps to reproduce the behavior:
None
Expected behavior
应该返回 n + int64(m)
Screenshots
If applicable, add screenshots to help explain your problem.
System Info (please fill out the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: