about summary refs log tree commit homepage
path: root/http_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'http_get.c')
-rw-r--r--http_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_get.c b/http_get.c
index 8fc566e..45470e5 100644
--- a/http_get.c
+++ b/http_get.c
@@ -251,7 +251,7 @@ enum mog_next mog_http_get_in_progress(struct mog_fd *mfd)
         struct mog_file *file;
         ssize_t w;
         off_t count;
-        static const off_t max_sendfile = 1024 * 1024 * 100;
+        off_t max_sendfile = (mog_ioq_contended() ? 1 : 100) * 1024 * 1024;
 
         assert(http->wbuf == NULL && "can't serve file with http->wbuf");
         assert(http->forward && http->forward != MOG_IOSTAT && "bad forward");