]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle partial data re-sending on ktls/sendfile on FreeBSD
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>
Wed, 17 Feb 2021 22:49:30 +0000 (14:49 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 25 Feb 2021 22:45:41 +0000 (14:45 -0800)
commit63241a0764c9414e1bcce3bcb05bfbdba8f1f487
tree4ab17c7cbf3ebddc349071f4f90aa73666c555fb
parent7dfdd039a3584885648d33888359032479038dc1
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
Obtained from: OpenSSL (dfcfd17f2818cf520ce6381aed9ec3d2fc12170d)
Sponsored by: Netflix (merging to FreeBSD)

(cherry picked from commit 9b2f020c14af71a2606012143432dd717c7cf90e)
crypto/openssl/doc/man3/SSL_write.pod
crypto/openssl/include/internal/ktls.h