HomeFreeBSD

Handle partial data re-sending on ktls/sendfile on FreeBSD

Description

Handle partial data re-sending on ktls/sendfile on FreeBSD

Add a handler for EBUSY sendfile error in addition to
EAGAIN. With EBUSY returned the data still can be partially
sent and user code has to be notified about it, otherwise it
may try to send data multiple times.

PR: 251969
Approved by: re (gjb)
Obtained from: OpenSSL (dfcfd17f2818cf520ce6381aed9ec3d2fc12170d)
Sponsored by: Netflix (merging to FreeBSD)

(cherry picked from commit 9b2f020c14af71a2606012143432dd717c7cf90e)
(cherry picked from commit 63241a0764c9414e1bcce3bcb05bfbdba8f1f487)

Details

Provenance
gonzoAuthored on Feb 17 2021, 10:49 PM
jhbCommitted on Feb 26 2021, 9:35 PM
Parents
R10:e32bc2536297: update to BETA4
Branches
Unknown
Tags
Unknown