Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112493 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94333 invoked from network); 13 Dec 2020 15:39:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Dec 2020 15:39:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E06E61804D4 for ; Sun, 13 Dec 2020 07:10:12 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 13 Dec 2020 07:10:12 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id v14so11528039wml.1 for ; Sun, 13 Dec 2020 07:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=LzY5KJ/fG6FOWWR4MxCvdX/6Mwqi6zoFbZ3Q+LSM+9E=; b=IzCghQqJwlayjxqbUeuG461H7rClwBppZGFDux4hCVQnkFMFujjOcMs7ZC2fpAsILY LSq64mg9E/BZ65c1fafUVGbp0TUjm+zI+GnySuA13w2DtfxWHBqbERIVsXXgLzMqSQyB iGjMAbcS8DE2nMT8wBxyVPj7ojDZRVkvq6XVKVYNP8tHBW0lzFjiMntv22yrJ9rzdYxd LHxCVv90gcMf3KiPhGGL51224AWzJ0vUjxx7vV5coouSw1GcGqZpXZDDGCvV+w+3qsfG yya6ahGfQDNIzmor9GgeBqMp9gqy55m0vaSIPWbbpjac8cLt1CD3mIf/TqrTHNqkYctF SRJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=LzY5KJ/fG6FOWWR4MxCvdX/6Mwqi6zoFbZ3Q+LSM+9E=; b=abLxhOqX0xyoZ1mDUFpXwhJD9yvD438jaP++LMRmc5cSXpWiVOy5771X1RDpCYLzpy NG8cVMZ36AZjRLMF2x33+tvGt61CqsZyIRlxeHdKTnlTgfm8D74SxCMN+SKF4g3Y5OIy ckhX8SKZn0hLjo+cMhmUnwcBE+Xw7QyQ29jKFsl97LH6VIYqH1DS/KKlcAzIeiss8eq6 3z7LD+eNKNr8QPr9Te5Heuxdd2jHBDdRIqFQOuVPIE1lrFnfsZML04UwvPA0aVouf84/ 2nOv/8+3Xh7kna4Unwmg+qNLNsC49AOQOIXVHT50QWzEmNorJAdIgm49GCdjeP0JDPB9 fYJw== X-Gm-Message-State: AOAM5302WSTrt2o8L6nNZ3EygCREr4kGoqKWh26R6XwLbV3QPVeYlvxd k2780vRdRsH1+xSa4etH9i7BYX+Nx4E= X-Google-Smtp-Source: ABdhPJwCkNwG6N1FtZwCw6IEZNuz7XBy46GQOv2HefM6cAI1t+pMP+xNa5uRWv42jrnvYtCUVWCkDA== X-Received: by 2002:a05:600c:258:: with SMTP id 24mr23908708wmj.16.1607872210995; Sun, 13 Dec 2020 07:10:10 -0800 (PST) Received: from [10.133.19.88] (92.40.173.197.threembb.co.uk. [92.40.173.197]) by smtp.gmail.com with ESMTPSA id a13sm27384281wrt.96.2020.12.13.07.10.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Dec 2020 07:10:10 -0800 (PST) Date: Sun, 13 Dec 2020 15:01:48 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: PHP Internals List Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Measuring maximum execution time based on wall-time From: rowan.collins@gmail.com (Rowan Tommins) Hi M=C3=A1t=C3=A9, On 13 December 2020 00:25:10 GMT+00:00, "M=C3=A1t=C3=A9 Kocsis" wrote: >RFC: https://wiki=2Ephp=2Enet/rfc/max_execution_wall_time I wonder if you could give some more detailed examples of what you would u= se this for=2E You write: > [The current functionality] can have serious consequences for distribute= d systems with high traffic, where finishing a request in a timely manner i= s essential for avoiding cascading failures=2E It feels like "finishing in a timely manner" is rather different from "bei= ng forcefully killed after a fixed time limit"=2E I'm struggling to picture when I'd want a hard wall-time limit, rather tha= n: - checking the script's duration at key points where I know it can gracefu= lly exit, ensure a consistent state, and return an appropriate message to t= he caller - enforcing a network timeout on the calling end so that I don't need to r= ely on all services cooperatively exiting in good time Regards, --=20 Rowan Tommins [IMSoP]