summaryrefslogtreecommitdiff
path: root/src/mod_fastcgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-09-17 11:49:55 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-28 11:05:55 -0400
commitf19f71625cbf2d9ec482ae831e68ef7f66aa62bb (patch)
tree0e0df1e95de8b34d34b48ca0b989b0a31b66982a /src/mod_fastcgi.c
parentd59d5e59b929b55653c1ad61378715f1ab439fbe (diff)
downloadlighttpd-git-f19f71625cbf2d9ec482ae831e68ef7f66aa62bb.tar.gz
[multiple] internal control for backend read bytes
separate internal control for backend max_per_read When not streaming, large reads will be flushed to temp files on disk. When streaming, use a smaller buffer to help reduce memory usage. When not streaming, attempt to read and empty kernel socket bufs. (e.g. MAX_READ_LIMIT 256k) When writing to sockets (or pipes) attempt to fill kernel socket bufs. (e.g. MAX_WRITE_LIMIT 256k)
Diffstat (limited to 'src/mod_fastcgi.c')
-rw-r--r--src/mod_fastcgi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c
index aae72a6d..60a647aa 100644
--- a/src/mod_fastcgi.c
+++ b/src/mod_fastcgi.c
@@ -497,7 +497,8 @@ static handler_t fcgi_check_extension(request_st * const r, void *p_d, int uri_p
handler_ctx *hctx = r->plugin_ctx[p->id];
hctx->opts.backend = BACKEND_FASTCGI;
hctx->opts.parse = fcgi_recv_parse;
- hctx->opts.pdata = hctx;
+ hctx->opts.pdata = hctx; /*(skip +255 for potential padding)*/
+ hctx->opts.max_per_read = sizeof(FCGI_Header)+FCGI_MAX_LENGTH+1;
hctx->stdin_append = fcgi_stdin_append;
hctx->create_env = fcgi_create_env;
if (!hctx->rb) {