-
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: Brad Fitzpatrick <bradfitz@golang.org>
4333d382