Add ETIMEDOUT to partial result list

Reported-by: syzbot+db8d83f93b84fcb84374@syzkaller.appspotmail.com
PiperOrigin-RevId: 355213994
This commit is contained in:
Fabricio Voznika
2021-02-02 11:37:11 -08:00
committed by gVisor bot
parent 017348af99
commit d6d169320c
+2 -2
View File
@@ -134,8 +134,8 @@ func handleIOErrorImpl(t *kernel.Task, partialResult bool, err, intr error, op s
// Similar to EPIPE. Return what we wrote this time, and let
// ENOSPC be returned on the next call.
return true, nil
case syserror.ECONNRESET:
// For TCP sendfile connections, we may have a reset. But we
case syserror.ECONNRESET, syserror.ETIMEDOUT:
// For TCP sendfile connections, we may have a reset or timeout. But we
// should just return n as the result.
return true, nil
case syserror.ErrWouldBlock: