]> Cypherpunks repositories - gostls13.git/commitdiff
net: *netFD.Read to return os.EOF on eof (fixes windows build)
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 23 Feb 2011 23:17:45 +0000 (10:17 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Wed, 23 Feb 2011 23:17:45 +0000 (10:17 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4210041

src/pkg/net/fd_windows.go

index e62f551cc086fe6b46a66f6f4238c15803da8b94..63a8fbc44898a202ee57613f8d64443d3074b21b 100644 (file)
@@ -318,7 +318,7 @@ func (fd *netFD) Read(buf []byte) (n int, err os.Error) {
        o.Init(fd, buf)
        n, err = iosrv.ExecIO(&o, fd.rdeadline_delta)
        if err == nil && n == 0 {
-               err = &OpError{o.Name(), o.fd.net, o.fd.laddr, os.EOF}
+               err = os.EOF
        }
        return
 }