Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B66E77BA3 for ; Tue, 15 Nov 2011 18:33:42 +0000 (UTC) Received: (qmail 72611 invoked by uid 500); 15 Nov 2011 18:33:41 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 72549 invoked by uid 500); 15 Nov 2011 18:33:41 -0000 Mailing-List: contact dev-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 dev@httpd.apache.org Received: (qmail 72541 invoked by uid 99); 15 Nov 2011 18:33:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 18:33:41 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [188.40.99.202] (HELO eru.sfritsch.de) (188.40.99.202) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 18:33:35 +0000 Received: from [10.1.1.6] (helo=k.localnet) by eru.sfritsch.de with esmtp (Exim 4.72) (envelope-from ) id 1RQNon-0007IG-Sk for dev@httpd.apache.org; Tue, 15 Nov 2011 19:33:14 +0100 From: Stefan Fritsch To: dev@httpd.apache.org Subject: Re: svn commit: r1202255 - /httpd/httpd/trunk/modules/filters/mod_reqtimeout.c Date: Tue, 15 Nov 2011 19:33:12 +0100 User-Agent: KMail/1.13.7 (Linux/3.0.0-2-amd64; KDE/4.6.5; x86_64; ; ) References: <20111115154919.7B17F238897F@eris.apache.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201111151933.13287.sf@sfritsch.de> On Tuesday 15 November 2011, Paul Querna wrote: > On Tue, Nov 15, 2011 at 9:17 AM, Stefan Fritsch wrote: > > On Tue, 15 Nov 2011, pquerna@apache.org wrote: > >> Author: pquerna > >> Date: Tue Nov 15 15:49:19 2011 > >> New Revision: 1202255 > >> > >> URL: http://svn.apache.org/viewvc?rev=1202255&view=rev > >> Log: > >> disable mod_reqtimeout if not configured > > > > Why that? We have just changed the default to be enabled in > > r1199447 and several developers at the hackathon agreed to this > > change. > > Didn't know it was discussed in depth at the hackathon, and there > wasn't any discussion on the list.... > > It showed up quite quickly in my profiling of the Event MPM, > because every pull/push on the filters would cause a > apr_time_now() call. > > I don't really like that just by loading the module, it changes the > behavior and performance of the server so drastically. It only acts on reads from the client. Normal non-POST requests arrive in one or two packets, which would mean approx. 3 additional apr_time_now calls per request. I haven't done benchmarks, but I can't imagine that this has a drastic impact on performance. And if it costs 1-2%, then that's a small cost compared to the impact of slowloris type attacks which eat lots of memory. The general intention of the recent changes in default configs and module selection/loading was to make it easier to only load those modules that are really needed, have a reasonable default config, and have the compiled-in default values be the same as those in the example config files.