Skip to content

Commit 79e3aec

Browse files
committed
Merge of /httpd/httpd/trunk:r1931949
mod_http2: update to v2.0.39 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1932237 13f79535-47bb-0310-9956-ffa450edef68
1 parent 741b540 commit 79e3aec

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

changes-entries/h2_v2.0.39.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*) mod_http2: update to version 2.0.39
2+
Remove streams own memory allocator after reports of memory problems
3+
with third party modules.
4+
[Stefan Eissing]

modules/http2/h2_session.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,13 @@ static void cleanup_unprocessed_streams(h2_session *session)
111111
h2_mplx_c1_streams_do(session->mplx, rst_unprocessed_stream, session);
112112
}
113113

114-
/* APR callback invoked if allocation fails. */
115-
static int abort_on_oom(int retcode)
116-
{
117-
ap_abort_on_oom();
118-
return retcode; /* unreachable, hopefully. */
119-
}
120-
121114
static h2_stream *h2_session_open_stream(h2_session *session, int stream_id,
122115
int initiated_on)
123116
{
124117
h2_stream * stream;
125-
apr_allocator_t *allocator;
126118
apr_pool_t *stream_pool;
127-
apr_status_t rv;
128-
129-
rv = apr_allocator_create(&allocator);
130-
if (rv != APR_SUCCESS)
131-
return NULL;
132119

133-
apr_allocator_max_free_set(allocator, ap_max_mem_free);
134-
apr_pool_create_ex(&stream_pool, session->pool, NULL, allocator);
135-
apr_allocator_owner_set(allocator, stream_pool);
136-
apr_pool_abort_set(abort_on_oom, stream_pool);
120+
apr_pool_create(&stream_pool, session->pool);
137121
apr_pool_tag(stream_pool, "h2_stream");
138122

139123
stream = h2_stream_create(stream_id, stream_pool, session,

modules/http2/h2_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
* @macro
2828
* Version number of the http2 module as c string
2929
*/
30-
#define MOD_HTTP2_VERSION "2.0.38"
30+
#define MOD_HTTP2_VERSION "2.0.39"
3131

3232
/**
3333
* @macro
3434
* Numerical representation of the version number of the http2 module
3535
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3636
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3737
*/
38-
#define MOD_HTTP2_VERSION_NUM 0x020026
38+
#define MOD_HTTP2_VERSION_NUM 0x020027
3939

4040

4141
#endif /* mod_h2_h2_version_h */

0 commit comments

Comments
 (0)