Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125850 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 84FA31AE081 for ; Thu, 24 Oct 2024 11:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1729767904; bh=s/W+UtqmmWZT/nZNOwqD9BDIGWLzc7VgI649xFhsSeQ=; h=Date:From:To:In-Reply-To:References:Subject:From; b=AUW+b/cR5EUSX4Z0kj+iqpfGQ24t9K9JZITG7fFtz+ULcQm94fHe7OWgZdN+OcGCw BpTLOWFkScd9imskQVFT66wHC3Qjmw43rrMJI6ASKEyuX82/nd6/ZpIEnjrU17orAz I62zYjHoeKwCGabl41mmb3yhv6dR/bYrZyp/v0qHgjqQndp/aRKjpXnjZjURCWdW5/ ed0VsePmPAwqnU0Y6yypJrZC/y6s+o6n5pA34ts3vg8ScRlD9+1w1XWp6K9K9Gp15m X3kXN8EbkTyPL5BFcThoJCeqs1+F38gighI0v3T9xeXAzriN4iHBHczu5szHb+g9oG 8O/wsq6v/m0jw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7A81E1801E6 for ; Thu, 24 Oct 2024 11:05:01 +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=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (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 ; Thu, 24 Oct 2024 11:04:58 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 6EC1A1380261; Thu, 24 Oct 2024 07:02:32 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Thu, 24 Oct 2024 07:02:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1729767752; x=1729854152; bh=3oUscq3pIf OcHSo7GlszkHIaBAuVLNlVhPhvjHzzn7s=; b=dMAUTW+3r6r1/YKLtZrPo6yGZ9 xc24F8n+gZ0676dWSsHUU1cwQDBOpHlJCMKJeEw6LuyTPwziyurkPlquJbQCEaLT yCsmFm4nOfrCIifqHCqxg/PgrFs+OOcvYdDkGOunP8k8pidMISON+DG3RyXdxb74 4u9feyXoOZxnPhUx2O+DU3rCW6uqOhDlS12T+FBVEQMng2GwHuqrk+ElAGQ3WfUx r0rOoWelNqtCWOJ4WyM8Qd4yf+RUHjnmp/91fq4spbD9iIq8Pf0fRMPNk633uksw aNi0tE1jT3/DJ8ShzxxpWdyNBgv9mW3c5ywlYhPZq0ym7uTd0VrJZ47uXVnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1729767752; x=1729854152; bh=3oUscq3pIfOcHSo7GlszkHIaBAuV LNlVhPhvjHzzn7s=; b=KoaL8li9H3UpPl3ioRV5eVLNi8yRQNNdA/ULBYUE9tY7 Y7S6LTHgkvMNzdsBQNaSJF+CEmEBus2Poe7cHLY+FNGCVzVsxH6IhHBrle9bvfTN 4lzmr+5xKMnqtSbHJzrITRHHZ1CV7pU9Sn0xBMlCrfZWm0D5WIAeoO6XriZOkKmN TGz5SJHZ4e7cYkpd5u6cmGphqGXiNKBZByQobyTxEZmkhJrr+gWMVEs7ZFecpMFT 9jfchHdHTEWLyFRuiNaYAN7slGZpTaJTu+X/nd6nJlGWxlbH0mRvZOOBnG9ceiqw 1134Ri6dXVpx7P5r/22eW08Nc7Enf5mXSb6XRpmVeA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejtddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtsegrtderreertdejnecu hfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdrtghoug gvsheqnecuggftrfgrthhtvghrnheptdeujedttefhueelhfdtleeiudetlefftdduleeh ffegtdeihefhleeijefgveegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtghouggvshdpnhgspghrtghpthht ohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheptghmsggvtghkvghrieelse hgmhigrdguvgdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhn vght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 1BAB3780069; Thu, 24 Oct 2024 07:02:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 24 Oct 2024 13:02:11 +0200 To: "Christoph M. Becker" , internals@lists.php.net Message-ID: <1ecb6c26-427a-49d2-bb05-06f167199632@app.fastmail.com> In-Reply-To: <5366cc2e-d839-41b1-9423-c53bd6ca2d99@gmx.de> References: <5753e226-e512-4051-ab87-0184f21797d4@app.fastmail.com> <5366cc2e-d839-41b1-9423-c53bd6ca2d99@gmx.de> Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Persistent CurlShareHandle objects Content-Type: multipart/alternative; boundary=f6dcd116813245caa931cab1d08c482d From: rob@bottled.codes ("Rob Landers") --f6dcd116813245caa931cab1d08c482d Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Oct 24, 2024, at 13:01, Christoph M. Becker wrote: > On 23.10.2024 at 21:42, Rob Landers wrote: >=20 > > On Wed, Oct 23, 2024, at 21:20, Eric Norris wrote: > > > >> Were you also suggesting that I shouldn't ask a question about the > >> implementation regarding using EG(persistent_list) vs. a module > >> global? I'm torn; I agree that it is an implementation detail but I > >> was hoping to actually get wider input since it generated discussion > >> in my pull request. Since no one responded here I felt like it'd be= a > >> lightweight way to get feedback on what people felt, but the lack of > >> response probably means that people don't feel strongly enough about > >> it. > >> > >> That said, after reflecting I think I would agree that it is > >> unnecessary to add this as a question, and I'll continue with the > >> implementation as-is in the PR. If people would like to send feedba= ck > >> on using EG(persistent_list) instead, feel free to do so here or in > >> the PR. > > > > For what it is worth, I think you should go for the EG(persistent_li= st) method. Over on FrankenPHP, we are looking into some improvements to= TSRM (so that Go and PHP can share some of the same locks, among other = things) and EG uses TSRM while I think a module global would not. >=20 > For practical purposes, `EG(persistent_list)` is a module global (can > bikeshed whether the engine is a module). In particular, both use TLS > for ZTS builds, and neither can access entries of other processes and > threads, respectively. >=20 > I still think we should not add new stuff to `EG(persistent_list)`; > after all, resources are scheduled for removal, and likely > `EG(persistent_list)` will finally be removed, too, and then we would > need to convert to a curl module global anyway. >=20 > Christoph >=20 >=20 Sounds like a perfectly good reason to not use EG(persistent_list) to me= .=20 =E2=80=94 Rob --f6dcd116813245caa931cab1d08c482d Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Thu, Oct 24, 2024, at 13:01, Christoph M. Becker wrote= :
On 23.10.= 2024 at 21:42, Rob Landers wrote:

> On W= ed, Oct 23, 2024, at 21:20, Eric Norris wrote:
>
>> Were you also suggesting that I shouldn't ask a questio= n about the
>> implementation regarding using EG(per= sistent_list) vs. a module
>> global? I'm torn; I ag= ree that it is an implementation detail but I
>> was= hoping to actually get wider input since it generated discussion
>> in my pull request. Since no one responded here I felt = like it'd be a
>> lightweight way to get feedback on= what people felt, but the lack of
>> response proba= bly means that people don't feel strongly enough about
>= ;> it.
>>
>> That said, after= reflecting I think I would agree that it is
>> unne= cessary to add this as a question, and I'll continue with the
<= div>>> implementation as-is in the PR. If people would like to sen= d feedback
>> on using EG(persistent_list) instead, = feel free to do so here or in
>> the PR.
>
> For what it is worth, I think you should go f= or the EG(persistent_list) method. Over on FrankenPHP, we are looking in= to some improvements to TSRM (so that Go and PHP can share some of the s= ame locks, among other things) and EG uses TSRM while I think a module g= lobal would not.

For practical purposes, `E= G(persistent_list)` is a module global (can
bikeshed wheth= er the engine is a module).  In particular, both use TLS
<= div>for ZTS builds, and neither can access entries of other processes an= d
threads, respectively.

I st= ill think we should not add new stuff to `EG(persistent_list)`;
after all, resources are scheduled for removal, and likely
`EG(persistent_list)` will finally be removed, too, and then we w= ould
need to convert to a curl module global anyway.

Christoph



Sounds like a perfectly good reason to= not use EG(persistent_list) to me. 

=E2=80=94 Rob
--f6dcd116813245caa931cab1d08c482d--