ASF Bugzilla – Attachment 19293 Details for
Bug 41218
mod_disk_cache ignores EnableSendfile configuration directive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for 2.2.x branch
cache-sendfile.patch (text/plain), 890 bytes, created by
Issac Goldstand
on 2006-12-20 05:45:18 UTC
(
hide
)
Description:
Proposed patch for 2.2.x branch
Filename:
MIME Type:
Creator:
Issac Goldstand
Created:
2006-12-20 05:45:18 UTC
Size:
890 bytes
patch
obsolete
>Index: modules/cache/mod_disk_cache.c >=================================================================== >--- modules/cache/mod_disk_cache.c (revision 488297) >+++ modules/cache/mod_disk_cache.c (working copy) >@@ -359,6 +359,10 @@ > cache_info *info; > disk_cache_object_t *dobj; > int flags; >+#if APR_HAS_SENDFILE >+ core_dir_config *pdconf = ap_get_module_config(r->per_dir_config, >+ &core_module); >+#endif > > h->cache_obj = NULL; > >@@ -453,7 +457,8 @@ > /* Open the data file */ > flags = APR_READ|APR_BINARY; > #ifdef APR_SENDFILE_ENABLED >- flags |= APR_SENDFILE_ENABLED; >+ flags |= ((pdconf->enable_sendfile == ENABLE_SENDFILE_OFF) >+ ? 0 : APR_SENDFILE_ENABLED); > #endif > rc = apr_file_open(&dobj->fd, dobj->datafile, flags, 0, r->pool); > if (rc != APR_SUCCESS) {
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 41218
: 19293