httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1729788 - in /httpd/test/mod_h2/trunk: Makefile.am conf/sites/test.example.org.conf htdocs/test.example.org/abort_test.cgi
Date Thu, 11 Feb 2016 10:03:49 GMT
Author: icing
Date: Thu Feb 11 10:03:49 2016
New Revision: 1729788

URL: http://svn.apache.org/viewvc?rev=1729788&view=rev
Log:
adding test script related to github issue #84

Added:
    httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi   (with props)
Modified:
    httpd/test/mod_h2/trunk/Makefile.am
    httpd/test/mod_h2/trunk/conf/sites/test.example.org.conf

Modified: httpd/test/mod_h2/trunk/Makefile.am
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/Makefile.am?rev=1729788&r1=1729787&r2=1729788&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/Makefile.am (original)
+++ httpd/test/mod_h2/trunk/Makefile.am Thu Feb 11 10:03:49 2016
@@ -224,7 +224,7 @@ $(SERVER_DIR)/.testdocs-setup: \
 	@echo -n setup htdocs locally...
 	@mkdir -p $(SERVER_DIR)/htdocs
 	@cp -r htdocs/test.example.org $(SERVER_DIR)/htdocs/
-	@chmod +x $$(find $(SERVER_DIR)/htdocs/test.example.org/ -name "*.py" )
+	@chmod +x $$(find $(SERVER_DIR)/htdocs/test.example.org/ -name "*.py" -o -name "*.cgi")
 	@for i in $$(find $(SERVER_DIR)/htdocs/test.example.org/ -name "htaccess" ); \
     do mv "$$i" "$$(dirname "$$i")/.htaccess"; done
 	@echo done.

Modified: httpd/test/mod_h2/trunk/conf/sites/test.example.org.conf
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/conf/sites/test.example.org.conf?rev=1729788&r1=1729787&r2=1729788&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/conf/sites/test.example.org.conf (original)
+++ httpd/test/mod_h2/trunk/conf/sites/test.example.org.conf Thu Feb 11 10:03:49 2016
@@ -11,6 +11,7 @@
     Require all granted
 
     AddHandler cgi-script .py
+    AddHandler cgi-script .cgi
     Options +ExecCGI
 
 </Directory>

Added: httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi?rev=1729788&view=auto
==============================================================================
--- httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi (added)
+++ httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi Thu Feb 11 10:03:49 2016
@@ -0,0 +1,25 @@
+#!/usr/bin/env php
+<?php
+error_log('script started');
+$done=false;
+register_shutdown_function('abort');
+
+echo "Content-type: text/html\n\n";
+echo "\n\n";
+flush();
+
+for($i = 1; $i <= 60; $i++)
+{
+    sleep(1);
+    echo "$i<br>\n";
+    error_log("$i");
+}
+$done = true;
+
+function abort()
+{
+    global $done;
+    if(!$done) error_log("aborted");
+}
+error_log('script ended');
+?>

Propchange: httpd/test/mod_h2/trunk/htdocs/test.example.org/abort_test.cgi
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message