HomeFreeBSD

Check so_error early in sendfile() call. Prior to this patch, if a

Description

Check so_error early in sendfile() call. Prior to this patch, if a
connection was reset by the remote end, sendfile() would just report
ENOTCONN instead of ECONNRESET.

Submitted by: Jason Eggleston <jason@eggnet.com>
Reviewed by: glebius
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D12575

Details

Provenance
sbrunoAuthored on
Reviewer
glebius
Differential Revision
D12575: Check so_error early in sendfile() call
Parents
rS324404: MFC note: tests/sys/kern/coredump_phnum_test.sh changes omitted
Branches
Unknown
Tags
Unknown