diff --git a/plugins/http/http.c b/plugins/http/http.c index 8f0202d1..0b76faa7 100644 --- a/plugins/http/http.c +++ b/plugins/http/http.c @@ -57,6 +57,7 @@ struct uwsgi_option http_options[] = { {"http-uid", required_argument, 0, "drop http router privileges to the specified uid", uwsgi_opt_uid, &uhttp.cr.uid, 0 }, {"http-gid", required_argument, 0, "drop http router privileges to the specified gid", uwsgi_opt_gid, &uhttp.cr.gid, 0 }, {"http-resubscribe", required_argument, 0, "forward subscriptions to the specified subscription server", uwsgi_opt_add_string_list, &uhttp.cr.resubscribe, 0}, + {"http-buffer-size", required_argument, 0, "set internal buffer size (default: page size)", uwsgi_opt_set_64bit, &uhttp.cr.buffer_size, 0}, {0, 0, 0, 0, 0, 0, 0}, }; diff --git a/plugins/rawrouter/rawrouter.c b/plugins/rawrouter/rawrouter.c index f16ee7ab..d3b4ad5f 100644 --- a/plugins/rawrouter/rawrouter.c +++ b/plugins/rawrouter/rawrouter.c @@ -56,6 +56,8 @@ static struct uwsgi_option rawrouter_options[] = { {"rawrouter-xclient", no_argument, 0, "use the xclient protocol to pass the client addres", uwsgi_opt_true, &urr.xclient, 0}, + {"rawrouter-buffer-size", required_argument, 0, "set internal buffer size (default: page size)", uwsgi_opt_set_64bit, &urr.cr.buffer_size, 0}, + {0, 0, 0, 0, 0, 0, 0}, }; diff --git a/plugins/sslrouter/sslrouter.c b/plugins/sslrouter/sslrouter.c index 54533ca7..6bb88455 100644 --- a/plugins/sslrouter/sslrouter.c +++ b/plugins/sslrouter/sslrouter.c @@ -155,6 +155,7 @@ static struct uwsgi_option sslrouter_options[] = { #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME {"sslrouter-sni", no_argument, 0, "use SNI to route requests", uwsgi_opt_true, &usr.sni, 0}, #endif + {"sslrouter-buffer-size", required_argument, 0, "set internal buffer size (default: page size)", uwsgi_opt_set_64bit, &usr.cr.buffer_size, 0}, {0, 0, 0, 0, 0, 0, 0}, };