You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2026/03/09 15:33:31 UTC

svn commit: r1932237 - in httpd/httpd/branches/2.4.x: . changes-entries modules/http2

Author: icing
Date: Mon Mar  9 15:33:30 2026
New Revision: 1932237

Log:
Merge of /httpd/httpd/trunk:r1931949

mod_http2: update to v2.0.39

Added:
   httpd/httpd/branches/2.4.x/changes-entries/h2_v2.0.39.txt
      - copied unchanged from r1931949, httpd/httpd/trunk/changes-entries/h2_v2.0.39.txt
Modified:
   httpd/httpd/branches/2.4.x/   (props changed)
   httpd/httpd/branches/2.4.x/modules/http2/h2_session.c
   httpd/httpd/branches/2.4.x/modules/http2/h2_version.h

Copied: httpd/httpd/branches/2.4.x/changes-entries/h2_v2.0.39.txt (from r1931949, httpd/httpd/trunk/changes-entries/h2_v2.0.39.txt)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ httpd/httpd/branches/2.4.x/changes-entries/h2_v2.0.39.txt	Mon Mar  9 15:33:30 2026	(r1932237, copy of r1931949, httpd/httpd/trunk/changes-entries/h2_v2.0.39.txt)
@@ -0,0 +1,4 @@
+  *) mod_http2: update to version 2.0.39
+     Remove streams own memory allocator after reports of memory problems
+     with third party modules.
+     [Stefan Eissing]

Modified: httpd/httpd/branches/2.4.x/modules/http2/h2_session.c
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/http2/h2_session.c	Mon Mar  9 15:27:35 2026	(r1932236)
+++ httpd/httpd/branches/2.4.x/modules/http2/h2_session.c	Mon Mar  9 15:33:30 2026	(r1932237)
@@ -111,29 +111,13 @@ static void cleanup_unprocessed_streams(
     h2_mplx_c1_streams_do(session->mplx, rst_unprocessed_stream, session);
 }
 
-/* APR callback invoked if allocation fails. */
-static int abort_on_oom(int retcode)
-{
-    ap_abort_on_oom();
-    return retcode; /* unreachable, hopefully. */
-}
-
 static h2_stream *h2_session_open_stream(h2_session *session, int stream_id,
                                          int initiated_on)
 {
     h2_stream * stream;
-    apr_allocator_t *allocator;
     apr_pool_t *stream_pool;
-    apr_status_t rv;
-
-    rv = apr_allocator_create(&allocator);
-    if (rv != APR_SUCCESS)
-      return NULL;
 
-    apr_allocator_max_free_set(allocator, ap_max_mem_free);
-    apr_pool_create_ex(&stream_pool, session->pool, NULL, allocator);
-    apr_allocator_owner_set(allocator, stream_pool);
-    apr_pool_abort_set(abort_on_oom, stream_pool);
+    apr_pool_create(&stream_pool, session->pool);
     apr_pool_tag(stream_pool, "h2_stream");
 
     stream = h2_stream_create(stream_id, stream_pool, session, 

Modified: httpd/httpd/branches/2.4.x/modules/http2/h2_version.h
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/http2/h2_version.h	Mon Mar  9 15:27:35 2026	(r1932236)
+++ httpd/httpd/branches/2.4.x/modules/http2/h2_version.h	Mon Mar  9 15:33:30 2026	(r1932237)
@@ -27,7 +27,7 @@
  * @macro
  * Version number of the http2 module as c string
  */
-#define MOD_HTTP2_VERSION "2.0.38"
+#define MOD_HTTP2_VERSION "2.0.39"
 
 /**
  * @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 0x020026
+#define MOD_HTTP2_VERSION_NUM 0x020027
 
 
 #endif /* mod_h2_h2_version_h */