]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_h2 version bump, more c89 goodiness
authorStefan Eissing <icing@apache.org>
Fri, 4 Sep 2015 10:25:31 +0000 (10:25 +0000)
committerStefan Eissing <icing@apache.org>
Fri, 4 Sep 2015 10:25:31 +0000 (10:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701204 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_h2.c
modules/http2/h2_to_h1.c
modules/http2/h2_version.h

index a253c01abb6968e31c469d6e049ea81039a0f573..221f5118df9eba4844e05d3cf45e8669a60a4cbc 100644 (file)
@@ -123,19 +123,7 @@ int h2_h2_remove_timeout(conn_rec* c)
 {
     h2_ctx *ctx = h2_ctx_get(c);
     
-    if (h2_ctx_is_task(ctx)) {
-        /* cleanup on task connections */
-        /* we once removed the reqtimeout filter on task connections,
-         * but timeouts here might have been a side effect of other things.
-         * Ideally mod_reqtimeout would do its work on task connections
-         * as it basically is a HTTP/1.1 request/response and it's made
-         * for that.
-         * So, let the filter stay for now and see if we ever encounter
-         * unexpected timeouts on tasks again.
-         */
-        //ap_remove_input_filter_byhandle(c->input_filters, "reqtimeout");
-    }
-    else if (h2_ctx_is_active(ctx)) {
+    if (h2_ctx_is_active(ctx) && !h2_ctx_is_task(ctx)) {
         /* cleanup on master h2 connections */
         ap_remove_input_filter_byhandle(c->input_filters, "reqtimeout");
     }
index 1e39aa6d80a1048bfbad4b003ae0624633b5d7f9..8dacfe801fc3727558d2dd653db61f4289c892b9 100644 (file)
@@ -114,7 +114,7 @@ apr_status_t h2_to_h1_add_header(h2_to_h1 *to_h1,
              || H2_HD_MATCH_LIT("proxy-connection", name, nlen)
              || H2_HD_MATCH_LIT("keep-alive", name, nlen)
              || H2_HD_MATCH_LIT("http2-settings", name, nlen)) {
-        // ignore these.
+        /* ignore these. */
         return APR_SUCCESS;
     }
     else if (H2_HD_MATCH_LIT("cookie", name, nlen)) {
index abd90d80923e269e490db69b8f0e511b5d5d708e..df4da02e74464f060f35bdf72b7082fd026e6446 100644 (file)
@@ -20,7 +20,7 @@
  * @macro
  * Version number of the h2 module as c string
  */
-#define MOD_H2_VERSION "0.9.6"
+#define MOD_H2_VERSION "0.9.7"
 
 /**
  * @macro
@@ -28,7 +28,7 @@
  * release. This is a 24 bit number with 8 bits for major number, 8 bits
  * for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
  */
-#define MOD_H2_VERSION_NUM 0x000906
+#define MOD_H2_VERSION_NUM 0x000907
 
 
 #endif /* mod_h2_h2_version_h */