From 60622ac0d261faf0ac91626d279fc6d095e7d024 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 2 Jan 2014 19:41:54 +0100 Subject: MINOR: add support for option "S={0|1}" in the request This option is used to enable/disable splicing. This helps deebugging strange cases such as splice() doing lower perf than send(). --- httpterm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/httpterm.c b/httpterm.c index af87f11..5e86912 100644 --- a/httpterm.c +++ b/httpterm.c @@ -452,6 +452,7 @@ struct session { int req_code, req_size; /* values passed in the URI to override the server's */ int req_cache, req_time; int req_chunked; + int req_nosplice; }; struct listener { @@ -677,6 +678,8 @@ const char *HTTP_HELP = " wait <time> milliseconds before responding. Eg: /?t=500\n" "
  • /?k={0|1} :\n" " Enable transfer enconding chunked with 1 byte chunks\n" + "
  • /?S={0|1} :\n" + " Disable/enable use of splice() to send data\n" "\n" "Note that those arguments may be cumulated on one line separated by\n" " the '&' sign :