[master] 8f3fe41 Regression test for ticket 1665: wrong behavior of timeout_req.

arianna-aondio arianna.aondio at varnish-software.com
Thu Feb 12 11:07:36 CET 2015


commit 8f3fe41e838c72246a7f54af430fdf722b6d7581
Author: arianna-aondio <arianna.aondio at varnish-software.com>
Date:   Thu Feb 12 10:51:51 2015 +0100

    Regression test for ticket 1665: wrong behavior of timeout_req.
    
    Timeout_req was measured from t_idle(which could be either the moment
    the connection was accepted or the time of the last activity of the
    previous request on the same connection)
    
    Timeout_req, according to the definition(varnishd/mgt/mgt_param_tbl.c)
    is now measured starting from t_first(timestamp for the
    first byte received).

diff --git a/bin/varnishtest/tests/r01665.vtc b/bin/varnishtest/tests/r01665.vtc
new file mode 100644
index 0000000..8d473a8
--- /dev/null
+++ b/bin/varnishtest/tests/r01665.vtc
@@ -0,0 +1,21 @@
+varnishtest "Ticket 1665 regression test: wrong behavior of timeout_req"
+
+server s1 {
+        rxreq
+       	txresp
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+client c1 {
+		delay 0.1
+		send "GET "
+		delay 2
+		send "/bar\n\n "
+		delay 0.1
+		send "GET"     
+		rxresp
+} -run
+
+		



More information about the varnish-commit mailing list