From: Stefan Eissing Date: Wed, 13 Oct 2021 08:26:18 +0000 (+0000) Subject: *) mod_http2: resurrecting the check for older nghttp2 versions. X-Git-Tag: 2.5.0-alpha2-ci-test-only~744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d3eca86d0852fc3b8c002605e5789433d91852;p=thirdparty%2Fapache%2Fhttpd.git *) mod_http2: resurrecting the check for older nghttp2 versions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894184 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_stream.c b/modules/http2/h2_stream.c index 366d0a93399..274ee157072 100644 --- a/modules/http2/h2_stream.c +++ b/modules/http2/h2_stream.c @@ -533,12 +533,13 @@ h2_stream *h2_stream_create(int id, apr_pool_t *pool, h2_session *session, stream->session = session; stream->monitor = monitor; +#ifdef H2_NG2_LOCAL_WIN_SIZE if (id) { stream->in_window_size = nghttp2_session_get_stream_local_window_size( stream->session->ngh2, stream->id); } - +#endif ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1, H2_STRM_LOG(APLOGNO(03082), stream, "created")); on_state_enter(stream); @@ -1131,6 +1132,7 @@ apr_status_t h2_stream_in_consumed(h2_stream *stream, apr_off_t amount) consumed -= len; } +#ifdef H2_NG2_LOCAL_WIN_SIZE if (1) { int cur_size = nghttp2_session_get_stream_local_window_size( session->ngh2, stream->id); @@ -1173,6 +1175,7 @@ apr_status_t h2_stream_in_consumed(h2_stream *stream, apr_off_t amount) session->id, stream->id, (long)amount, cur_size, stream->in_window_size); } +#endif /* #ifdef H2_NG2_LOCAL_WIN_SIZE */ } return APR_SUCCESS; }