Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14730 invoked by uid 1010); 4 Apr 2007 09:55:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14715 invoked from network); 4 Apr 2007 09:55:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2007 09:55:59 -0000 Authentication-Results: pb1.pair.com header.from=david.sklar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=david.sklar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.244 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.sklar@gmail.com X-Host-Fingerprint: 209.85.132.244 an-out-0708.google.com Received: from [209.85.132.244] ([209.85.132.244:5706] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/C6-18035-F2673164 for ; Wed, 04 Apr 2007 05:55:59 -0400 Received: by an-out-0708.google.com with SMTP id c28so188177ana for ; Wed, 04 Apr 2007 02:55:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Jcq7efedj4IoOXm7QORVfMPAJwYDtl00hdTDzT4tuJ7vH2tL06hTZKCJYMf+trOWukbx2jVB+O+6O3kSLMjIrp+u23amhV8uva2p1evr2aCdXz8ZKatUopCY+wCA2a3t/aaDfj/V5zNFanMDuenEM6Jb0VBuM64yNSm1FnY3Atk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=r427t8VpIph8EwEpkkZndXONz0OhMW8M3bK5W3NlEcFPWCGMxxtJgfYxvuz3bHlTYp2nQm6SDDdLbVHLfCIG05NG+WKnzBw1YD0aGuHbl3QLWIAWN6BlETlljgTJvvaNWHiLEcUI6kQl/Spn/WfG+yThpMGiocBz6tHQ00IthtU= Received: by 10.100.196.3 with SMTP id t3mr257699anf.1175680556941; Wed, 04 Apr 2007 02:55:56 -0700 (PDT) Received: by 10.100.168.17 with HTTP; Wed, 4 Apr 2007 02:55:56 -0700 (PDT) Message-ID: <7cea347c0704040255o525a1ebdy81e4b5dbad047baa@mail.gmail.com> Date: Wed, 4 Apr 2007 11:55:56 +0200 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: max_execution_time - ITIMER_REAL vs ITIMER_PROF From: david.sklar@gmail.com ("David Sklar") I'm interested in having a timeout that corresponds to clock time as opposed to PHP execution time (the current behavior of max_execution_time). A cursory scan of the source implies that (on Unix at least) something that behaves like zend_set_timeout() but uses setitimer()'s ITIMER_REAL timer instead of ITIMER_PROF would do the trick. Before I investigate much further, a few questions: - Is anyone aware of a reason why ITIMER_REAL would cause problems? (Signal delivered while PHP is doing something uninterruptable?) - Assuming ITIMER_REAL works OK, is there interest in incorporating a patch for a "max_real_time" config directive / timeout? Thanks, David