Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126556 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 3816A1A00BC for ; Mon, 3 Mar 2025 18:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741026258; bh=snGFFfXgVKKw1qz7aiaXnKcYNMjtt/MJwNedO5stUiQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZvAdjftkNN5l6w+pRXZ2rjZjQRSryEDpFyLNmZPxzLf60zWJLnO8BQ7ovdOSkqUOw p/egMNSDEwWo8PIcgbCUBDLFlKVh1PDpE9eZY3aFhBhpBnSrPcCkY3TWUB6HIOKOvo nIxL2JDm2dkn1+LYZ0/dTKJICbxvSKMIfrYYwmx9yzOyfIotDn31On/Xb9jNeIkTu+ U8lq3OfzYTsllpUI9HV/vpYJPKVod3RsLGbuVlRKUgo61vZ3KaAYAMCOSOLrep8jAV p1oPpFaTuZ9A1qeEOoyDH7FUxrmVMvd9y8et8beJub/Cxd6GYCb0uIo3TUuVOiaS4H uw89btQByQdTA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7AD191801E9 for ; Mon, 3 Mar 2025 18:24:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 3 Mar 2025 18:24:17 +0000 (UTC) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e589c258663so5240040276.1 for ; Mon, 03 Mar 2025 10:26:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741026413; x=1741631213; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=snGFFfXgVKKw1qz7aiaXnKcYNMjtt/MJwNedO5stUiQ=; b=KRYdzHk4+0BtQDTti0wHbs5SkAYjhlGz2QTCcU+a23QzGTpp4hviEnYcpw+zgpgZCD rpdJRtp6CcO0oc7NqlgrgHyBRKHNXPTdy8BkTRKEeUtOqJW1eBbHO4zaEc/D40++6NdP VgxsfsYPCWUXawwUjyhRUxPTzgP1VcPOfFtNV7iQdgO9PtZCld5QO1j0dhJ3HqCSStAk LBJO+qcRL50tUILYLus6Ld+KzdQejOCLaexUxLVq2a7/SXMBKO/a3+o3Hrp9CujJ/i1P qvC47JZThHm7J9Wt20/hZsSvdL2CfTxg0T+4GyawCEqqasBSMncNIjO6Qivd6a1L+zST PhSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741026413; x=1741631213; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=snGFFfXgVKKw1qz7aiaXnKcYNMjtt/MJwNedO5stUiQ=; b=ICcygfo7L8yS1ETOEiM8oR7duxAVdAZHAj/nqHk4Tnu/SnXo5ooj3+PGRyyGXdPjsn sl1pjk+4q1/ZeF3QnwVmn0rFrzmNTNjn6gCOr06tuuHy39JX6nKzjCVP+sRHqWnzgqpV zdtBkM0RzjjiXyocRSyUMsfHhHpdaa6kRM5Ypn+SH9U+Jaje/WmzQqXSw5lEroEZy5kc KL2HM9O2SUPQDF3n2IkKFqszl9XzEVpCoCiCPhijBSdhOIYwSqlIpG4w66HqJOO+wYtk nKAEJC57og3MGLtQEz+gSPvXIrsjG2svaULE2IDzhz0poXMkbYtTHD0SYLYNyx7isbTz PK2Q== X-Gm-Message-State: AOJu0YyhVK0bnzFVZp0KVDFBXgslQm/cLnZ3UGXktYUuyxR46RTgfaJs 89sUtJqsJKLCeoyA3UVfojaMxTWT3hB1vl1q+3YelgU4Z8Za7nPxnYUWj3rCkokFHRrgjVwXvlL JMEDc49Ee1VHY6cfvrYXL/y89467PcloN2UI= X-Gm-Gg: ASbGncv+10ixrncimnvjoEeTN/FP3qwxOSDeX2Ag4TiOdx7D/bEJBbd8+I6B5voVOaw WxMl30GVGdTvzp8fSDip1oLepncaUkbb66CVDcDjPaBdAU3IKaHnktvUcK4D3M43xE+4lQrU7Hw vAH8e1lEQ9JMAidmqkQ3quANV4kw== X-Google-Smtp-Source: AGHT+IHSfCIoalNOcC0lawLEcoilHjSszUrHvdjszlzWwVN7uxlCw3TkLjD+AteN+taG8nA9/q/213DF7iAhhkwPwug= X-Received: by 2002:a05:690c:6701:b0:6fd:485c:9dd4 with SMTP id 00721157ae682-6fd4a1f1efemr185849467b3.32.1741026413127; Mon, 03 Mar 2025 10:26:53 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 3 Mar 2025 20:26:43 +0200 X-Gm-Features: AQ5f1Jp-iSQ4Zu9Nz5NRGOdwSuqPeHtK7C0wCY8BR6B0sDLfoo0L-IRQmpIR-Ko Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Daniil Gentili Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000e63551062f744c0c" From: edmond.ht@gmail.com (Edmond Dantes) --000000000000e63551062f744c0c Content-Type: text/plain; charset="UTF-8" > > Note the explicit use case I listed is that of an unlock() in a finally > block that *requires spawning a new fiber* in order to execute the actual > unlock() RPC call: this is explicitly in contrast with the RFC, which > specifies that > >*ATTENTION*: A programmer must *never* attempt to create a new fiber > while handling a CancellationException, as this behavior may trigger an > exception during *Graceful Shutdown* mode. > > I think you are right. This restriction increases complexity without providing significant benefits. I will remove this condition from the RFC entirely and simply state that the programmer should handle such situations carefully. Thank you! --000000000000e63551062f744c0c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Note the explicit use case I listed is that of an unlock() in = a finally block that *requires spawning a new fiber* in order to execute th= e actual unlock() RPC call: this is explicitly in contrast with the RFC, wh= ich specifies that=C2=A0
>ATTENTION: A progra= mmer must=C2=A0never=C2=A0attempt to create a new fiber wh= ile handling a=C2=A0CancellationException, as this behavior ma= y trigger an exception during=C2=A0Graceful Shutdown=C2=A0= mode.


I think you are right. This restriction increases complexity without provid= ing significant benefits. I will remove this condition from the RFC entirel= y and simply state that the programmer should handle such situations carefu= lly.=C2=A0
Thank you! =C2=A0=C2=A0
--000000000000e63551062f744c0c--