summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_stream.c
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2016-11-24 15:53:12 +0100
committerStefan Eissing <icing@apache.org>2016-11-24 15:53:12 +0100
commit9ed8c34e74730400344f71c5b3d862bac1ce333c (patch)
tree9ac76e63694290026115d463c0ca84bcae407f2f /modules/http2/h2_stream.c
parentupdate after backport (diff)
downloadapache2-9ed8c34e74730400344f71c5b3d862bac1ce333c.tar.xz
apache2-9ed8c34e74730400344f71c5b3d862bac1ce333c.zip
mod_http2: wseaking cleanup assertion on streams that have never been scheduled
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1771160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/http2/h2_stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/http2/h2_stream.c b/modules/http2/h2_stream.c
index d3dd50cb65..2d179d0b0f 100644
--- a/modules/http2/h2_stream.c
+++ b/modules/http2/h2_stream.c
@@ -200,6 +200,7 @@ h2_stream *h2_stream_open(int id, apr_pool_t *pool, h2_session *session,
stream->state = H2_STREAM_ST_IDLE;
stream->pool = pool;
stream->session = session;
+ stream->can_be_cleaned = 1;
h2_beam_create(&stream->input, pool, id, "input", H2_BEAM_OWNER_SEND, 0);
h2_beam_create(&stream->output, pool, id, "output", H2_BEAM_OWNER_RECV, 0);
@@ -412,6 +413,7 @@ apr_status_t h2_stream_schedule(h2_stream *stream, int eos, int push_enabled,
stream->request = stream->rtmp;
stream->rtmp = NULL;
stream->scheduled = 1;
+
stream->push_policy = h2_push_policy_determine(stream->request->headers,
stream->pool, push_enabled);