[master] d92975c Add test for #1608
Federico G. Schwindt
fgsch at lodoss.net
Tue Mar 17 17:15:40 CET 2015
commit d92975ce999bb0af21a63c91a582fc48677650e9
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Tue Mar 17 16:04:03 2015 +0000
Add test for #1608
We don't return 413/414 (yet?) but we have a specific counter for this
now. Whether this is enough it's something we need to finalise.
diff --git a/bin/varnishtest/tests/r01608.vtc b/bin/varnishtest/tests/r01608.vtc
new file mode 100644
index 0000000..6486988
--- /dev/null
+++ b/bin/varnishtest/tests/r01608.vtc
@@ -0,0 +1,16 @@
+varnishtest "Increment counter if http_req_size is exhausted"
+
+server s1 {
+} -start
+
+varnish v1 -arg "-p http_req_size=2048" -vcl+backend {
+} -start
+
+client c1 {
+ send "GET /"
+ send_n 2048 "A"
+ send " HTTP/1.1\r\n\r\n"
+ expect_close
+} -run
+
+varnish v1 -expect sc_rx_overflow == 1
More information about the varnish-commit
mailing list