all: rename os.EOF to io.EOF in various non-code contexts
R=golang-dev, r CC=golang-dev https://golang.org/cl/5334050
This commit is contained in:
parent
4fa24e9f66
commit
3d2f7f086e
2
conn.go
2
conn.go
@ -471,7 +471,7 @@ Again:
|
|||||||
// RFC suggests that EOF without an alertCloseNotify is
|
// RFC suggests that EOF without an alertCloseNotify is
|
||||||
// an error, but popular web sites seem to do this,
|
// an error, but popular web sites seem to do this,
|
||||||
// so we can't make it an error.
|
// so we can't make it an error.
|
||||||
// if err == os.EOF {
|
// if err == io.EOF {
|
||||||
// err = io.ErrUnexpectedEOF
|
// err = io.ErrUnexpectedEOF
|
||||||
// }
|
// }
|
||||||
if e, ok := err.(net.Error); !ok || !e.Temporary() {
|
if e, ok := err.(net.Error); !ok || !e.Temporary() {
|
||||||
|
Loading…
Reference in New Issue
Block a user