Handle partial data re-sending on ktls/sendfile on FreeBSD
authorOleksandr Tymoshenko <gonzo@bluezbox.com>
Sun, 20 Dec 2020 19:01:53 +0000 (11:01 -0800)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2021 09:14:33 +0000 (09:14 +0000)
commitdfcfd17f2818cf520ce6381aed9ec3d2fc12170d
tree761205d3bf6ffd297597820afb69cab02c6236f9
parent3bc0b621a7baf1a11bc5cad69a287ad093674d68
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.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13716)
doc/man3/SSL_write.pod
include/internal/ktls.h