Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94920 invoked from network); 20 Aug 2008 17:47:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2008 17:47:32 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:37513] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/17-57622-2B85CA84 for ; Wed, 20 Aug 2008 13:47:32 -0400 Received: (qmail 9315 invoked by uid 507); 20 Aug 2008 17:47:25 -0000 Received: from ppp-88-217-8-85.dynamic.mnet-online.de (HELO ?192.168.1.101?) (postmaster%schlueters.de@88.217.8.85) by mail4.netbeat.de with ESMTPA; 20 Aug 2008 17:47:25 -0000 To: Lucas Nealan Cc: PHP Internals List In-Reply-To: References: Content-Type: text/plain Date: Wed, 20 Aug 2008 19:47:24 +0200 Message-ID: <1219254444.6409.7.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Apache 1.x sapi timeout name fix From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, is anybody with deeper Apache knowledge around who can review that? Thnaks, johannes On Fri, 2008-08-15 at 19:36 -0700, Lucas Nealan wrote: > Hello, > > Apache 1.x SAPI will occasionally timeout with a "Read POST information > timeout" error instead of a "send timeout" error as it should. This will > happen if the alarm timeout occurs in a POST request, at any point after the > post is read (ie. php_execute_script). This is because the > hard_timeout("send") name set within send_php() is overridden by the > hard_timeout("Read POST information") in sapi_apache_read_post() and never > restored. > > I walked through the startup calls from the point where timeout is set in > send_php to where the read post timeout is set. It seems highly unlikely > that a timeout should happen in this code, even if it were set to 1. The > patches below will correct the timeout name by moving the > hard_timeout("send") from send_php() to php_apache_sapi_activate(), which is > called just after the post is read. > > http://sizzo.org/~screen/patches/php-5.3.0-timer_post.patch > http://sizzo.org/~screen/patches/php-HEAD-timer_post.patch > > -lucas > >