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 2021/10/13 08:26:18 UTC
svn commit: r1894184 - /httpd/httpd/trunk/modules/http2/h2_stream.c
Author: icing
Date: Wed Oct 13 08:26:18 2021
New Revision: 1894184
URL: http://svn.apache.org/viewvc?rev=1894184&view=rev
Log:
*) mod_http2: resurrecting the check for older nghttp2 versions.
Modified:
httpd/httpd/trunk/modules/http2/h2_stream.c
Modified: httpd/httpd/trunk/modules/http2/h2_stream.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_stream.c?rev=1894184&r1=1894183&r2=1894184&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_stream.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_stream.c Wed Oct 13 08:26:18 2021
@@ -533,12 +533,13 @@ h2_stream *h2_stream_create(int id, apr_
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_st
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_st
session->id, stream->id, (long)amount,
cur_size, stream->in_window_size);
}
+#endif /* #ifdef H2_NG2_LOCAL_WIN_SIZE */
}
return APR_SUCCESS;
}