]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
sockets: list EBUSY as a retryable socket error code.
authorGleb Smirnoff <glebius@netflix.com>
Tue, 17 Feb 2026 19:21:31 +0000 (11:21 -0800)
committerNeil Horman <nhorman@openssl.org>
Wed, 18 Feb 2026 23:31:05 +0000 (18:31 -0500)
This is a documented error code for sendfile(2) in FreeBSD.  Being on a
conservative side embrace into ifdef for now.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
MergeDate: Wed Feb 18 23:31:21 2026
(Merged from https://github.com/openssl/openssl/pull/29744)

crypto/bio/bss_sock.c

index cf54ad28e849c1908cc51441bd5bd53ecdb4ff09..ea128ab8926a71a4837d7d017808f26fe723dd58 100644 (file)
@@ -310,6 +310,9 @@ int BIO_sock_non_fatal_error(int err)
         || err == EINTR
 #if !defined(__DJGPP__) && !defined(OPENSSL_SYS_TANDEM)
         || err == EPROTO
+#endif
+#ifdef __FreeBSD__
+        || err == EBUSY
 #endif
         || err == EINPROGRESS
         || err == EALREADY;