I wonder, what the following test is expected to test? I can't really make it work reliably here. Sometimes I get an ENOMEM on the server, sometimes it takes a long time and much CPU, sometimes the client gets a 596 AnyEvent::HTTP error and sometimes it runs ok.

Am 01.06.2022 um 15:03 schrieb cove...@apache.org:
Modified: httpd/test/framework/trunk/t/modules/sed.t
URL: 
http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/sed.t?rev=1901514&r1=1901513&r2=1901514&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/sed.t (original)
+++ httpd/test/framework/trunk/t/modules/sed.t Wed Jun  1 13:03:08 2022
@@ -5,29 +5,44 @@ use Apache::Test;
  use Apache::TestRequest;
  use Apache::TestUtil;
+# Hack to allow streaming of data in/out of mod_echo
+use LWP::Protocol::AnyEvent::http;
+
  my @ts = (
     # see t/conf/extra.conf.in
-   { url => "/apache/sed/out-foo/foobar.html", content => 'barbar', msg => "sed output 
filter", code => 200 },
-   { url => "/apache/sed-echo/echo.html", content => 'barbar', msg => "sed input filter", code 
=> 200, body=>"foobar" }
+   { url => "/apache/sed/out-foo/foobar.html", content => 'barbar', msg => "sed output 
filter", code => '200' },
+   # error after status sent
+   { url => "/apache/sed-echo/out-foo-grow/foobar.html", content => "", msg => "sed output filter too 
large", code => '200', body=>"foo" x (8192*1024), resplen=>0},

I found no other body size, that made it reliable, so therefore I am wondering, what it would test in an ideal world.

Thanks and regards,

Rainer

Reply via email to