From owner-freebsd-current Fri Aug 7 07:10:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA09986 for freebsd-current-outgoing; Fri, 7 Aug 1998 07:10:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA09979 for ; Fri, 7 Aug 1998 07:10:52 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id QAA17530; Fri, 7 Aug 1998 16:06:10 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Fri, 7 Aug 1998 16:06:10 +0200 (MET DST) Mime-Version: 1.0 To: Mark Huizer Cc: Tom , Dusk Auriel Sykotik , Bruce Evans , dg@root.com, narvi@haldjas.folklore.ee, freebsd-current@FreeBSD.ORG Subject: Re: memory leaks in libc References: <19980806181215.A7652@xaa.iae.nl> <19980807154721.A865@xaa.iae.nl> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 07 Aug 1998 16:06:09 +0200 In-Reply-To: Mark Huizer's message of "Fri, 7 Aug 1998 15:47:21 +0200" Message-ID: Lines: 24 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA09980 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Huizer writes: > OK, how come a poor little apache server doesn't like this: > > GET / HTTP/1.0 > User-Agent: a > User-Agent: aaaaaaaaaaaaaaaaaaaaaa > (repeat last 2 lines 20000 times) > (empty line) > > apache on a Linux machine here is still thinking about wheterh or not to > return 100M, time to test it on my home FreeBSD server :-) So maybe it's time to switch to thttpd. Seriously, Apache should not rely on getenv() / setenv(). It should instead build an array of environment variables which it then passes to execvt(). Self-starting dynamically sized arrays (and strings) are easy enouugh to write, and if you use an exponential growth function the performance impact is negligible (in fact, I wouldn't be surprised if it turned out to be a lot faster than getenv() / setenv()) DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message