Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112783 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38659 invoked from network); 6 Jan 2021 16:50:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2021 16:50:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 632D01804A7 for ; Wed, 6 Jan 2021 08:26:33 -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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 ; Wed, 6 Jan 2021 08:26:32 -0800 (PST) Received: by mail-lf1-f49.google.com with SMTP id m25so7724243lfc.11 for ; Wed, 06 Jan 2021 08:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RNZ+v8A+rueVI5sasRHQF9bJhUJveZ2h8FCn1pFNiNA=; b=nmrObr+TewNBqFe+ynZ2JaaAh3r4T8PO95IvvHyIkbdpWsyTNrwPJQSvl7BPYs8fkv JNGPttL85AOCq2CoQNTGCwsUv4REWdIFS25+SIB1X8etB+WT207Si5JfBB6KwVEd9biB IjO4uGCBfosYl/st1eR99MSjGvlWYl8hvCcegezkzgjArq2Z6uiYT++sRDTyGEnhijG7 UVIgbKIDjRicbZTt68H/aDd3znC7IQJBZrjX9yukHtgvxmyGta1tY9vpOAV9o7TETZF6 x9dEcA5WBmGr6bae9+kcikbVMy/FW/fZeGb9af8zg3eJ9EvZ/xu53cHjfP4gqxTdoWn0 fMdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RNZ+v8A+rueVI5sasRHQF9bJhUJveZ2h8FCn1pFNiNA=; b=JyzMTUF9J1N9QGAGUVB0DjL7P2GoUm7SehXgx9SBid5rwiCCWB7IMmt6ZxlAjIN+kX MW6p5F3XhznV7nW3R9z/oGl5mpx8J3bKtaDo690TSWmucAeZQ5loOprw9gr7EOT/ACar 1/AikrRxKRLi9iIJZc19W/wdSvVf/NbQRXFTCkFtSr064jV1omg3MgiSE0bHeX+JSQD6 IP4gwQA2epQv9CCgHxflQcG8kohYC1VpvT+lZbQUxvNaBB7sL11oaxTRjYpIl6ncC+8o jTRON9zR1pY2nmTeOVdf7ZOX3/G/D5cd0SwoUa4A6oa6mpiZcHdQRYMwjwWjF+jrtUJR KYNg== X-Gm-Message-State: AOAM530EYrhCtxVmSv6nG9JPQRsEIUF4C1qAe1ubhkk0GpwPSF5z1Lf/ 3KV4SUb6TBjXrUi24kqtKXTCCg7k/f0A2zZ5Rl0= X-Google-Smtp-Source: ABdhPJwMwnzYROqWVOX9VxACdAqWYiVgd6mfeFBRou7XVAzVn6gnmP3dhdT0Ytks0AD5kOA2NJuGqzxNMed5BdZjvy0= X-Received: by 2002:a2e:8eda:: with SMTP id e26mr2238014ljl.272.1609950389771; Wed, 06 Jan 2021 08:26:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Jan 2021 17:26:13 +0100 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000016a1d105b83dc94a" Subject: Re: [PHP-DEV] [RFC] [Discussion] Measuring maximum execution time based on wall-time From: nikita.ppv@gmail.com (Nikita Popov) --00000000000016a1d105b83dc94a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Dec 13, 2020 at 1:25 AM M=C3=A1t=C3=A9 Kocsis wrote: > Hi Everyone, > > Thanks for all the insightful feedbacks so far, I went ahead, and wrote a > proper > RFC: https://wiki.php.net/rfc/max_execution_wall_time > > Regards: > M=C3=A1t=C3=A9 > Something potentially worth pointing out (and assuming I'm inferring the correct behavior here): If max_execution_wall_time is exceeded during an internal function call (which seems quite likely, as that's where there is the most potential for something to hang) and the function does not return within hard_timeout seconds, then the a process abort will be triggered. The hard_timeout is 2s by default. If any of the individual call timeouts are >=3D 2s, then it's not unlikely that this situation occurs. Regards, Nikita --00000000000016a1d105b83dc94a--