summaryrefslogtreecommitdiff
path: root/src/pkg/net/sendfile_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/net/sendfile_linux.go')
-rw-r--r--src/pkg/net/sendfile_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/net/sendfile_linux.go b/src/pkg/net/sendfile_linux.go
index a0d530362..3357e6538 100644
--- a/src/pkg/net/sendfile_linux.go
+++ b/src/pkg/net/sendfile_linux.go
@@ -58,8 +58,8 @@ func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
if n == 0 && err1 == nil {
break
}
- if err1 == syscall.EAGAIN && c.wdeadline >= 0 {
- if err1 = pollserver.WaitWrite(c); err1 == nil {
+ if err1 == syscall.EAGAIN {
+ if err1 = c.pollServer.WaitWrite(c); err1 == nil {
continue
}
}