diff options
Diffstat (limited to 'http_get.c')
-rw-r--r-- | http_get.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |