mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add ETIMEDOUT to partial result list
Reported-by: syzbot+db8d83f93b84fcb84374@syzkaller.appspotmail.com PiperOrigin-RevId: 355213994
This commit is contained in:
committed by
gVisor bot
parent
017348af99
commit
d6d169320c
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user