]> granicus.if.org Git - apache/commitdiff
flushing connection after h2_session is done
authorStefan Eissing <icing@apache.org>
Tue, 17 Nov 2015 10:56:20 +0000 (10:56 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 17 Nov 2015 10:56:20 +0000 (10:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1714753 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_h2.c
modules/http2/h2_switch.c

index 54fe9e0fa0a5631367b8c19c01b829fba8ef04db..857e3e27c2c592d29f48e769931169f816a43e82 100644 (file)
@@ -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");
index c107db8e73a40eff93b42138663efbbd1985057a..948241356a674e9b704a43009e09c6304e74604a 100644 (file)
@@ -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;
     }