Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65366 invoked from network); 23 Mar 2010 07:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2010 07:47:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:34843] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/BA-22681-B2278AB4 for ; Tue, 23 Mar 2010 02:47:56 -0500 Received: from [83.228.56.37] (port=3346 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1Ntyq8-0007yo-7j; Tue, 23 Mar 2010 02:47:52 -0500 Message-ID: <62211B4874BB4DD0A9628107EC69B06A@pc> To: "troels knak-nielsen" , "PHP Developers Mailing List" References: <98b8086f1003220751j73a8414es89b9b469c46f6630@mail.gmail.com> <1269270852.1575.141.camel@guybrush> <98b8086f1003220822s47665f87x696b70e9c13dadbd@mail.gmail.com> <98b8086f1003220855ya52c266g8dc4cb866ed451ea@mail.gmail.com> <98b8086f1003221054j161316barf9a772da78f4ca85@mail.gmail.com> <1855ED34-B6FA-4B74-B603-5A0D0A47A5A6@macvicar.net> <98b8086f1003221137v1942fba6tee987fe3b4ff4715@mail.gmail.com> <98b8086f1003221227w476f4e5eo82b790dfe16770b2@mail.gmail.com> Date: Tue, 23 Mar 2010 09:47:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] [PATCH] Raise warning first on "Maximum execution time exceeded" From: sv_forums@fmethod.com ("Stan Vassilev") > With the help of Scotts last suggestion, I made some changes. It seems > to work, but then I don't really know how to test it properly. I can > verify that A) it allows userland code the grace period of 1 second > for shutting down and B) shuts down regardless of the userland error > handler returning or not. I have tested by running the following: Hi, Thanks for your patch, but you're going to affect a whole group of users who do advanced logging and recovery in the shutdown phase. This is why these things have to be considered when they're first added. A grace period of 1 second seems sufficient on a pristine condition unused server, but when your server is loaded, a spike in load may cause a number of shutdown handlers to take more than 1 second, and stop middway running, causing a lot of unpredictability and trouble for those who rely on this feature. Regards, Stan Vassilev