FreeBSD Bugzilla – Attachment 181119 Details for
Bug 217789
FreeBSD 11 panic nginx, probably sendfile problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
217789.patch (text/plain), 560 bytes, created by
Gleb Smirnoff
on 2017-03-24 03:07:54 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2017-03-24 03:07:54 UTC
Size:
560 bytes
patch
obsolete
>Index: sys/kern/kern_sendfile.c >=================================================================== >--- sys/kern/kern_sendfile.c (revision 315662) >+++ sys/kern/kern_sendfile.c (working copy) >@@ -689,11 +689,10 @@ retry_space: > goto done; > } > if (va.va_size != obj_size) { >- if (nbytes == 0) >- rem += va.va_size - obj_size; >- else if (offset + nbytes > va.va_size) >- rem -= (offset + nbytes - va.va_size); > obj_size = va.va_size; >+ rem = nbytes ? >+ omin(nbytes + offset, obj_size) : obj_size; >+ rem -= off; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217789
:
180823
|
180824
|
180862
| 181119