• Mikio Hara's avatar
    net: fix typo in error message of TCPConn.ReadFrom · 4333d382
    Mikio Hara authored
    On some error when using io.Copy with TCPConn, it displays an error
    correlation like the following:
    
    read tcp 192.0.2.1:1111->192.0.2.2:2222: read tcp [2001:db8::2]:2222->[2001:db8::3]:3333 read: connection reset by peer
    
    the correlation "some error on reading after reading operation" looks a
    bit confusing because the operation on the ReadFrom method of TCPConn is
    actually "writing after reading." To clarify and avoid confusion, this
    change sets "readfrom" to the Op field of outer-most OpError instead of
    "read."
    
    Change-Id: I6bf4e2e7247143fa54bbcf9cef7a8ae1ede1b35c
    Reviewed-on: https://go-review.googlesource.com/25220Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    4333d382
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...