You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2023/07/06 08:24:25 UTC

svn commit: r1910810 - in /httpd/httpd/trunk/test: modules/http2/test_712_buffering.py pyhttpd/curl.py

Author: icing
Date: Thu Jul  6 08:24:24 2023
New Revision: 1910810

URL: http://svn.apache.org/viewvc?rev=1910810&view=rev
Log:
test h2: be more generous in stutter step jittering.


Modified:
    httpd/httpd/trunk/test/modules/http2/test_712_buffering.py
    httpd/httpd/trunk/test/pyhttpd/curl.py

Modified: httpd/httpd/trunk/test/modules/http2/test_712_buffering.py
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/modules/http2/test_712_buffering.py?rev=1910810&r1=1910809&r2=1910810&view=diff
==============================================================================
--- httpd/httpd/trunk/test/modules/http2/test_712_buffering.py (original)
+++ httpd/httpd/trunk/test/modules/http2/test_712_buffering.py Thu Jul  6 08:24:24 2023
@@ -33,7 +33,7 @@ class TestBuffering:
         url = env.mkurl("https", "cgi", "/h2test/echo")
         base_chunk = "0123456789"
         chunks = ["chunk-{0:03d}-{1}\n".format(i, base_chunk) for i in range(5)]
-        stutter = timedelta(seconds=0.2)  # this is short, but works on my machine (tm)
+        stutter = timedelta(seconds=0.2)
         piper = CurlPiper(env=env, url=url)
         piper.stutter_check(chunks, stutter)
 

Modified: httpd/httpd/trunk/test/pyhttpd/curl.py
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/pyhttpd/curl.py?rev=1910810&r1=1910809&r2=1910810&view=diff
==============================================================================
--- httpd/httpd/trunk/test/pyhttpd/curl.py (original)
+++ httpd/httpd/trunk/test/pyhttpd/curl.py Thu Jul  6 08:24:24 2023
@@ -130,9 +130,7 @@ class CurlPiper:
                 delta_mics += datetime.time(23, 59, 59, 999999)
             recv_deltas.append(datetime.timedelta(microseconds=delta_mics))
             last_mics = mics
-        stutter_td = datetime.timedelta(seconds=stutter.total_seconds() * 0.9)  # 10% leeway
-        # TODO: the first two chunks are often close together, it seems
-        # there still is a little buffering delay going on
+        stutter_td = datetime.timedelta(seconds=stutter.total_seconds() * 0.75)  # 25% leeway
         for idx, td in enumerate(recv_deltas[1:]):
             assert stutter_td < td, \
                 f"chunk {idx} arrived too early \n{recv_deltas}\nafter {td}\n{recv_err}"