]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_http2: resurrecting the check for older nghttp2 versions.
authorStefan Eissing <icing@apache.org>
Wed, 13 Oct 2021 08:26:18 +0000 (08:26 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 13 Oct 2021 08:26:18 +0000 (08:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894184 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_stream.c

index 366d0a93399aad557c629d23c2203e322fabfa52..274ee15707245faf988aa94e1696ee03c9c99446 100644 (file)
@@ -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;   
 }