Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163413975
D12501.id33461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
565 B
Referenced Files
None
Subscribers
None
D12501.id33461.diff
View Options
Index: sys/kern/kern_sendfile.c
===================================================================
--- sys/kern/kern_sendfile.c
+++ sys/kern/kern_sendfile.c
@@ -866,8 +866,20 @@
CURVNET_RESTORE();
m = NULL; /* pru_send always consumes */
- if (error)
+ if (error) {
+ if (error == ERESTART)
+ error = EINTR;
+ if (error == EINTR ||
+ error == EAGAIN) {
+ if (rem <= 0) {
+ error = 0;
+ goto noerr;
+ }
+ sbytes += space + hdrlen;
+ }
goto done;
+ }
+noerr:
sbytes += space + hdrlen;
if (hdrlen)
hdrlen = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 12:21 AM (6 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35421220
Default Alt Text
D12501.id33461.diff (565 B)
Attached To
Mode
D12501: count bytes in vn_sendfile when pru_send returns EAGAIN
Attached
Detach File
Event Timeline
Log In to Comment