Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136791678
D28714.id84032.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28714.id84032.diff
View Options
Index: crypto/openssl/doc/man3/SSL_write.pod
===================================================================
--- crypto/openssl/doc/man3/SSL_write.pod
+++ crypto/openssl/doc/man3/SSL_write.pod
@@ -120,7 +120,8 @@
=item Z<>>= 0
The write operation was successful, the return value is the number
-of bytes of the file written to the TLS/SSL connection.
+of bytes of the file written to the TLS/SSL connection. The return
+value can be less than B<size> for a partial write.
=item E<lt> 0
Index: crypto/openssl/include/internal/ktls.h
===================================================================
--- crypto/openssl/include/internal/ktls.h
+++ crypto/openssl/include/internal/ktls.h
@@ -192,15 +192,12 @@
static ossl_inline ossl_ssize_t ktls_sendfile(int s, int fd, off_t off,
size_t size, int flags)
{
- off_t sbytes;
+ off_t sbytes = 0;
int ret;
ret = sendfile(fd, s, off, size, NULL, &sbytes, flags);
- if (ret == -1) {
- if (errno == EAGAIN && sbytes != 0)
- return sbytes;
- return -1;
- }
+ if (ret == -1 && sbytes == 0)
+ return -1;
return sbytes;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 20, 2:08 PM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25729482
Default Alt Text
D28714.id84032.diff (1 KB)
Attached To
Mode
D28714: Handle partial data re-sending on ktls/sendfile on FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment