valenok 14 lat temu
rodzic
commit
d44f4e4abb
1 zmienionych plików z 16 dodań i 0 usunięć
  1. 16 0
      test/timeout.cgi

+ 16 - 0
test/timeout.cgi

@@ -0,0 +1,16 @@
+#!/usr/bin/env perl
+
+use Cwd;
+use CGI;
+
+use vars '%in';
+CGI::ReadParse();
+
+print "Content-Type: text/html\r\n\r\n";
+
+# This script outputs some content, then sleeps for 5 seconds, then exits.
+# Web server should return the content immediately after it is sent,
+# not waiting until the script exits.
+print "Some data";
+flush STDOUT;
+sleep 5;