From 319e9d69a471184f8b7044a67ef1b148b53d010d Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Sun, 19 Jun 2016 11:15:58 +0000 Subject: [PATCH] mod_http2: fix for request abort when connections drops, introduced in 1.5.8 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749151 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_mplx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/http2/h2_mplx.c b/modules/http2/h2_mplx.c index 9b2cb956a1..2b8ed6bb7a 100644 --- a/modules/http2/h2_mplx.c +++ b/modules/http2/h2_mplx.c @@ -436,6 +436,9 @@ static void stream_done(h2_mplx *m, h2_stream *stream, int rst_error) if (stream->input) { m->tx_handles_reserved += h2_beam_get_files_beamed(stream->input); h2_beam_on_consumed(stream->input, NULL, NULL); + /* Let anyone blocked reading know that there is no more to come */ + h2_beam_abort(stream->input); + /* Remove mutex after, so that abort still finds cond to signal */ h2_beam_mutex_set(stream->input, NULL, NULL, NULL); } h2_stream_cleanup(stream); -- 2.40.0