]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of /httpd/httpd/trunk:r1925975
authorStefan Eissing <icing@apache.org>
Tue, 3 Jun 2025 08:07:31 +0000 (08:07 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 3 Jun 2025 08:07:31 +0000 (08:07 +0000)
  *) mod_http2: update to version 2.0.32
     The code setting the connection window size was set wrong,
     preventing `H2WindowSize` to work.
     Fixed <https://github.com/icing/mod_h2/issues/300>.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1926082 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/h2_v2.0.32.txt [new file with mode: 0644]
modules/http2/h2_mplx.c
modules/http2/h2_session.c
modules/http2/h2_version.h

diff --git a/changes-entries/h2_v2.0.32.txt b/changes-entries/h2_v2.0.32.txt
new file mode 100644 (file)
index 0000000..a1597cd
--- /dev/null
@@ -0,0 +1,5 @@
+  *) mod_http2: update to version 2.0.32
+     The code setting the connection window size was set wrong,
+     preventing `H2WindowSize` to work.
+     Fixed <https://github.com/icing/mod_h2/issues/300>.
+     [Stefan Eissing, Michael Kaufmann]
index 62239a9889f546556454bd53724109a953b652e6..d23f1eca27a213e38f634e3efddf21bd50ca87af 100644 (file)
@@ -1263,7 +1263,7 @@ static apr_status_t mplx_pollset_poll(h2_mplx *m, apr_interval_time_t timeout,
                 if (on_stream_input) {
                     APR_ARRAY_PUSH(m->streams_ev_in, h2_stream*) = m->stream0;
                 }
-                continue;
+                break;
             }
         }
 
index ee380efc2c0dda2407e775767614e4d61a61efb0..fc8b6119ae8dbdd3ce81cc5f7a9eb5d06e4b240a 100644 (file)
@@ -1154,13 +1154,13 @@ static apr_status_t h2_session_start(h2_session *session, int *rv)
          * interim updates, any smaller connection window will lead to blocking
          * in DATA flow.
          */
-        *rv = nghttp2_submit_window_update(session->ngh2, NGHTTP2_FLAG_NONE,
-                                           0, NGHTTP2_MAX_WINDOW_SIZE - win_size);
+        *rv = nghttp2_session_set_local_window_size(
+            session->ngh2, NGHTTP2_FLAG_NONE, 0, NGHTTP2_MAX_WINDOW_SIZE);
         if (*rv != 0) {
             status = APR_EGENERAL;
             ap_log_cerror(APLOG_MARK, APLOG_ERR, status, session->c1,
                           H2_SSSN_LOG(APLOGNO(02970), session,
-                          "nghttp2_submit_window_update: %s"), 
+                          "nghttp2_session_set_local_window_size: %s"),
                           nghttp2_strerror(*rv));        
         }
     }
index 18b0b99d34d05068807839bd06e459cc0eb40188..13441a093548ffb20c4ef37f08476cbe4b0a80c2 100644 (file)
@@ -27,7 +27,7 @@
  * @macro
  * Version number of the http2 module as c string
  */
-#define MOD_HTTP2_VERSION "2.0.31"
+#define MOD_HTTP2_VERSION "2.0.32"
 
 /**
  * @macro
@@ -35,7 +35,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_HTTP2_VERSION_NUM 0x02001f
+#define MOD_HTTP2_VERSION_NUM 0x020020
 
 
 #endif /* mod_h2_h2_version_h */