httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1721548 - in /httpd/test/mod_h2/trunk: conf/httpd.conf test/test_push.sh
Date Wed, 23 Dec 2015 14:56:21 GMT
Author: icing
Date: Wed Dec 23 14:56:21 2015
New Revision: 1721548

URL: http://svn.apache.org/viewvc?rev=1721548&view=rev
Log:
accep-push-policy tests added

Modified:
    httpd/test/mod_h2/trunk/conf/httpd.conf
    httpd/test/mod_h2/trunk/test/test_push.sh

Modified: httpd/test/mod_h2/trunk/conf/httpd.conf
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/conf/httpd.conf?rev=1721548&r1=1721547&r2=1721548&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/conf/httpd.conf (original)
+++ httpd/test/mod_h2/trunk/conf/httpd.conf Wed Dec 23 14:56:21 2015
@@ -73,7 +73,8 @@ MaxKeepAliveRequests 0
     LogLevel http2:info
     
     <IfModule mpm_event_module>
-    MaxRequestWorkers 400
+    ThreadsPerChild 64
+    MaxRequestWorkers 768
     </IfModule>
     
     # max parallel streams per session, default 100

Modified: httpd/test/mod_h2/trunk/test/test_push.sh
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_push.sh?rev=1721548&r1=1721547&r2=1721548&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/test/test_push.sh (original)
+++ httpd/test/mod_h2/trunk/test/test_push.sh Wed Dec 23 14:56:21 2015
@@ -47,6 +47,33 @@ EOF
     nghttp_check_fcontent 006-push4.html "get 006-push4"   <<EOF
 006-push4.html
 EOF
+
+    # push-policies (https://tools.ietf.org/html/draft-ruellan-http-accept-push-policy-00)
+    # a. no pushes desired
+    nghttp_check_fcontent 006-push.html "policy: none" -H 'accept-push-policy: none'  <<EOF
+006-push.html
+EOF
+
+    # push-policies (https://tools.ietf.org/html/draft-ruellan-http-accept-push-policy-00)
+    # b. default pushes desired
+    nghttp_check_fcontent 006-push.html "policy: default" -H 'accept-push-policy: default'
 <<EOF
+006-push.html
+006/006.css
+EOF
+
+    # push-policies (https://tools.ietf.org/html/draft-ruellan-http-accept-push-policy-00)
+    # c. HEAD pushes desired
+    nghttp_check_fcontent 006-push.html "policy: head" -H 'accept-push-policy: head'  <<EOF
+006-push.html
+EOF
+
+    # push-policies (https://tools.ietf.org/html/draft-ruellan-http-accept-push-policy-00)
+    # c. fast-load pushes desired
+    nghttp_check_fcontent 006-push.html "policy: fast-load" -H 'accept-push-policy: fast-load'
 <<EOF
+006-push.html
+006/006.css
+EOF
+
 else
     echo "push tests require httpd >= 2.4.18"
 fi
\ No newline at end of file



Mime
View raw message