From: Stefan Eissing Date: Tue, 17 Nov 2015 10:56:20 +0000 (+0000) Subject: flushing connection after h2_session is done X-Git-Tag: 2.5.0-alpha~2642 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=458a0c888c318bca04a1e65de4855840a475bbd5;p=apache flushing connection after h2_session is done git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1714753 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_h2.c b/modules/http2/h2_h2.c index 54fe9e0fa0..857e3e27c2 100644 --- a/modules/http2/h2_h2.c +++ b/modules/http2/h2_h2.c @@ -648,10 +648,14 @@ int h2_h2_process_conn(conn_rec* c) * the connection. */ if (h2_ctx_is_active(ctx)) { + apr_status_t status; + ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c, "h2_h2, connection, h2 active"); - return h2_conn_process(c, NULL); + status = h2_conn_process(c, NULL); + ap_flush_conn(c); + return status; } ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c, "h2_h2, declined"); diff --git a/modules/http2/h2_switch.c b/modules/http2/h2_switch.c index c107db8e73..948241356a 100644 --- a/modules/http2/h2_switch.c +++ b/modules/http2/h2_switch.c @@ -160,6 +160,7 @@ static int h2_protocol_switch(conn_rec *c, request_rec *r, server_rec *s, ap_log_rerror(APLOG_MARK, APLOG_DEBUG, status, r, "session proessed, unexpected status"); } + ap_flush_conn(r->connection); } return DONE; }