From: Stefan Eissing Date: Mon, 31 Aug 2015 16:12:11 +0000 (+0000) Subject: explicitly setting connection state on end of processing to help reclaim resources X-Git-Tag: 2.5.0-alpha~2900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48f1611c1f5cae56fbf22270d8626934fdcc08d5;p=apache explicitly setting connection state on end of processing to help reclaim resources git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700271 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_conn.c b/modules/http2/h2_conn.c index 1d644e4050..d83db748a9 100644 --- a/modules/http2/h2_conn.c +++ b/modules/http2/h2_conn.c @@ -161,6 +161,7 @@ apr_status_t h2_conn_main(conn_rec *c) { h2_config *config = h2_config_get(c); h2_session *session; + apr_status_t status; ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, "h2_conn_main start"); if (!workers) { @@ -174,7 +175,12 @@ apr_status_t h2_conn_main(conn_rec *c) return APR_EGENERAL; } - return h2_session_process(session); + status = h2_session_process(session); + + /* Make sure this connection gets cleaned up properly. */ + c->cs->state = CONN_STATE_LINGER; + + return status; } apr_status_t h2_session_process(h2_session *session)