Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 68662 invoked from network); 15 Apr 2010 10:30:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Apr 2010 10:30:09 -0000 Received: (qmail 54416 invoked by uid 500); 15 Apr 2010 10:30:08 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 53994 invoked by uid 500); 15 Apr 2010 10:30:06 -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 53986 invoked by uid 99); 15 Apr 2010 10:30:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 10:30:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rshibuya0619@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 10:29:56 +0000 Received: by gyd5 with SMTP id 5so584750gyd.18 for ; Thu, 15 Apr 2010 03:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=N/Abr5Qbs46JdROKeMBs0eVKcVv0mxWlDKZxQPSgelU=; b=NTb9j9X8hhFXIKE6MNFQHWDxYFKdRlFOvrBFQwu6+1HZgAwWU0xsYIzaSEAyOXhzkj 7SEQKr58czJqcbFJhyl/ykzvtSitcZHCJedjYzIfbWV5MQ3fHV+5JWMAIirTUzS9HOa4 gvmoirEnXqegwtfnDhSGjzcwdY9cH6JNdu0vY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=v0d/rqBAIPul4EU1HJPZWusrVGYLAsfqPnfRO5HZhnzRoaDkBqn+xZ47O8KnAyZ4wA vsot0jvF07+hY1Npk2Hez9jUiyBrQlKELu/DAs+aJFnCnzep6kLmz6y9Bh4CRUPOWFSW 2ZyZxfbSVLxBnva9zT67P08CulArfGwKpAQGk= Received: by 10.101.210.6 with SMTP id m6mr16443451anq.207.1271327374415; Thu, 15 Apr 2010 03:29:34 -0700 (PDT) Received: from TOKRSHIBUYAXP (tok-nat.openwave.com [203.98.220.4]) by mx.google.com with ESMTPS id 21sm362273yxe.3.2010.04.15.03.29.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Apr 2010 03:29:33 -0700 (PDT) From: "Ryujiro Shibuya" To: References: <000001cadb72$bc389560$34a9c020$@com> <99EA83DCDE961346AFA9B5EC33FEC08B03BCEBB1@VF-MBX11.internal.vodafone.com> In-Reply-To: <99EA83DCDE961346AFA9B5EC33FEC08B03BCEBB1@VF-MBX11.internal.vodafone.com> Subject: RE: Age calculation in mod_cache. Date: Thu, 15 Apr 2010 19:29:28 +0900 Message-ID: <000d01cadc86$8a43fbc0$9ecbf340$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrbcrlcgVUkNNM1RKWOoau2h3V7HQAPcqTwADVyFEA= Content-Language: ja X-Virus-Checked: Checked by ClamAV on apache.org Hello R=FCdiger, Thank you for quick response and quick fix! Regards, Shibuya -----Original Message----- From: "Pl=FCm, R=FCdiger, VF-Group" [mailto:ruediger.pluem@vodafone.com] = Sent: Wednesday, April 14, 2010 5:58 PM To: dev@httpd.apache.org Subject: RE: Age calculation in mod_cache. =20 > -----Original Message----- > From: Ryujiro Shibuya=20 > Sent: Mittwoch, 14. April 2010 03:35 > To: dev@httpd.apache.org > Subject: Age calculation in mod_cache. >=20 > Hello, >=20 > A minor issue in the age calculation in mod_cache=20 > [ap_cache_current_age() in > cache_util.c] is found. >=20 > In some unusual conditions, the age of cached content can be=20 > calculated as > negative value. > The negative age value will be casted into a huge unsigned=20 > integer later, > and then the inappropriate Age header e.g. "Age: 4294963617"=20 > (=3D more than > 135 years) may be returned to the client. >=20 > In my opinion, the negative age should be adjusted to zero, at least. > What are your thoughts? Makes sense. Fixed in trunk as r933886. Regards R=FCdiger