Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10586 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95027 invoked by uid 1010); 18 Jun 2004 12:24:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95003 invoked from network); 18 Jun 2004 12:24:13 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 18 Jun 2004 12:24:13 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5ICODe1014515 for ; Fri, 18 Jun 2004 08:24:13 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5ICOC007348 for ; Fri, 18 Jun 2004 08:24:12 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i5ICOB7m028906 for ; Fri, 18 Jun 2004 13:24:11 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i5ICOBD6028905 for internals@lists.php.net; Fri, 18 Jun 2004 13:24:11 +0100 Date: Fri, 18 Jun 2004 13:24:11 +0100 To: internals@lists.php.net Message-ID: <20040618122411.GC24157@redhat.com> Mail-Followup-To: internals@lists.php.net References: <20040618103032.GA25820@redhat.com> <200406181413.14024.magnus@php.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200406181413.14024.magnus@php.net> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] [PATCH] apache2handler memory leak fix From: jorton@redhat.com (Joe Orton) On Fri, Jun 18, 2004 at 02:13:05PM +0200, Magnus Määttä wrote: > Hi! > > On Friday 18 June 2004 12.30, Joe Orton wrote: > > It's simpler to just use the ap_r* interfaces in the the handler SAPI > > for 2.0, this improves network usage by allowing httpd to buffer as > > necessary, and fixes a bug where ub_write is unnecessarily pmemdup'ing > > the string (it could have used a transient bucket to avoid that; the > > apache2filter got this right), and stops re-using an output brigade > > which is now or at least will soon be a 2.0 API violation. > > > > (this restores constant memory use for an arbitrary length response) > > I've attached a forward port of this patch for HEAD. > This also fixes bug #28113. Ah, thanks Magnus. Note that flush() may still leak a small amount of memory but this is what I'm working to fix in httpd. Regards, joe