[experimental-ims] f9c42ca Extend cli_limit to 48k to make room for the full output of 'param.show -l'.

Martin Blix Grydeland martin at varnish-software.com
Thu Dec 18 10:27:52 CET 2014


commit f9c42ca8306792ceb1d52cb78c4af23b7ee474af
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Fri Jul 20 12:35:56 2012 +0200

    Extend cli_limit to 48k to make room for the full output of
    'param.show -l'.
    
    Fixes: #1169

diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index b030caa..2f090dc 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -908,7 +908,7 @@ static const struct parspec input_parspec[] = {
 		" this limit, the reponse code will be 201 instead of"
 		" 200 and the last line will indicate the truncation.",
 		0,
-		"4k", "bytes" },
+		"48k", "bytes" },
 	{ "cli_timeout", tweak_timeout, &mgt_param.cli_timeout, 0, 0,
 		"Timeout for the childs replies to CLI requests from "
 		"the mgt_param.",
diff --git a/bin/varnishtest/tests/r01169.vtc b/bin/varnishtest/tests/r01169.vtc
new file mode 100644
index 0000000..73e741d
--- /dev/null
+++ b/bin/varnishtest/tests/r01169.vtc
@@ -0,0 +1,9 @@
+varnishtest "cli_limit truncating full parameter listing - #1169"
+
+server s1 {
+	rxreq
+} -start
+
+varnish v1 -vcl+backend { }
+
+varnish v1 -cliok "param.show -l"



More information about the varnish-commit mailing list