Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101947609
D47447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
542 B
Referenced Files
None
Subscribers
None
D47447.diff
View Options
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -2538,6 +2538,13 @@
current_offset = *offset;
error = fo_sendfile(fp, out, NULL, NULL, current_offset, count,
sbytes, 0, td);
+ if (error == EAGAIN) {
+ /*
+ * The socket is non-blocking and we didn't finish sending.
+ * Squash the error, since that's what Linux does.
+ */
+ error = 0;
+ }
if (error == 0) {
current_offset += *sbytes;
if (offset != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 5:43 PM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14476036
Default Alt Text
D47447.diff (542 B)
Attached To
Mode
D47447: linux sendfile: Fix handling of non-blocking sockets
Attached
Detach File
Event Timeline
Log In to Comment