Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 162FD188BE for ; Mon, 1 Feb 2016 16:25:58 +0000 (UTC) Received: (qmail 98437 invoked by uid 500); 1 Feb 2016 16:19:14 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 98373 invoked by uid 500); 1 Feb 2016 16:19:14 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 98358 invoked by uid 99); 1 Feb 2016 16:19:14 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 16:19:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9D545C0EFD for ; Mon, 1 Feb 2016 16:19:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.446 X-Spam-Level: X-Spam-Status: No, score=0.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 46uYwP4Qrl8F for ; Mon, 1 Feb 2016 16:19:12 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 35B5631AE0 for ; Mon, 1 Feb 2016 16:19:12 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1FE65E0185 for ; Mon, 1 Feb 2016 16:19:11 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id E4FDE3A023C for ; Mon, 1 Feb 2016 16:19:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1727963 - /httpd/httpd/trunk/modules/http2/h2_session.c Date: Mon, 01 Feb 2016 16:19:10 -0000 To: cvs@httpd.apache.org From: icing@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160201161910.E4FDE3A023C@svn01-us-west.apache.org> Author: icing Date: Mon Feb 1 16:19:10 2016 New Revision: 1727963 URL: http://svn.apache.org/viewvc?rev=1727963&view=rev Log: a little love for timneouts in the sync mpm setups Modified: httpd/httpd/trunk/modules/http2/h2_session.c Modified: httpd/httpd/trunk/modules/http2/h2_session.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_session.c?rev=1727963&r1=1727962&r2=1727963&view=diff ============================================================================== --- httpd/httpd/trunk/modules/http2/h2_session.c (original) +++ httpd/httpd/trunk/modules/http2/h2_session.c Mon Feb 1 16:19:10 2016 @@ -2071,7 +2071,10 @@ apr_status_t h2_session_process(h2_sessi else { /* We wait in smaller increments, using a 1 second timeout. * That gives us the chance to check for MPMQ_STOPPING often. */ - h2_filter_cin_timeout_set(session->cin, 1); + h2_filter_cin_timeout_set(session->cin, + (h2_stream_set_is_empty(session->streams)? + session->s->keep_alive_timeout : + session->s->timeout)); status = h2_session_read(session, 1, 10); if (status == APR_SUCCESS) { have_read = 1;