mirror of
https://github.com/golang/go
synced 2024-11-23 20:30:04 -07:00
net: remove dead code in Write
Also, please be informed that the Write method on both connected and unconnected-mode sockets may return a positive number of bytes written with timeout or use of closed network connection error. Change-Id: I2e2e6192e29cef4e9389eb0422c605c6d12e6a3c Reviewed-on: https://go-review.googlesource.com/9466 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
4b23b50fb4
commit
a0cff2989a
@ -311,7 +311,6 @@ func (fd *netFD) Write(p []byte) (nn int, err error) {
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
n = 0
|
||||
break
|
||||
}
|
||||
if n == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user