Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126070 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 1D3C01A00BD for ; Wed, 27 Nov 2024 17:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732727450; bh=NDPnexf05cjSmwecTW4ZaS2a+q62lhQs+rJNf8bUwLM=; h=Reply-To:From:Date:Subject:To:From; b=UbTPjZ2xkJPXX/g61aFlqHiBJSB/6Ce7R/j5WuM/HxiKZxgAeDEvS+Rfu0ZY6nfxc MffFaTzCRz+OEi3GRChhR2yITrvLjl0cyAQvpshQtGGT4kmj/Gi+bbKpkltfpazDMS C0DCppoSv/xD8EeXh61bKwKeLYtW4D9pw6o/InvppaJxTdeVIVzZTb4d2Kgs95uPuU UN1kihw7X82R7k2yt2qGZymcoDk5n3903fgFZTkUvi+XLDVPGb0CvqgK/OngIyVCDa f/phXiTnWCNEKGFHuKvS563TTKM08jyVQcyPENaNRbAHMZpYpqppeYu7rRchSVosJT ZYpoo2dIDQydA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ADB1C180069 for ; Wed, 27 Nov 2024 17:10:49 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (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 ; Wed, 27 Nov 2024 17:10:49 +0000 (UTC) Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-71d40fdde2fso1763487a34.3 for ; Wed, 27 Nov 2024 09:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732727638; x=1733332438; darn=lists.php.net; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=NDPnexf05cjSmwecTW4ZaS2a+q62lhQs+rJNf8bUwLM=; b=EWoTB1ld2LQCrfS/GNYD7KmsYtosqI9C634bqj2w6OePioY0o2orwDcbb2SobGJe03 cHrTC9guFPMiWTC5IDEeokoTzAg/Ht7ld+1gCtWpV7L4STpBwdW99kXHDD/KnREulynn mv4bTFdul54arVmurouGME2TvV2HMZgfUhyX9rlawpdP/H5kTezZQsgcmyptRosmaurO V1Q1/p6SWOEf5sBJm1+yiQ7ceVrN/ftuWEdVRKsTHycZ/32a7dwRSOa6eWZC/y3DpHL3 73b9tUQcmnvBqQx3eklID6MrbYX8J+iQyxhP+d3ZN65fGpaF7IKnIEzCuNF/Xj8eri/f Xfjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732727638; x=1733332438; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NDPnexf05cjSmwecTW4ZaS2a+q62lhQs+rJNf8bUwLM=; b=rFZFWeWOugpld5rgYHBa2JAIQUdeth5s04DSsmBGC9WFX7fzN5sjkSIUItUYxB1XbK gUeupfPGI4FPevd5hG82++g0nsw11DQCcTHZGQwIFRmZ4Ia8Vp+COp78y8fVr2V1mkEv BoUSmgnIl8+wvU2ziO/Wt7JnQIDC88s5DCz0d7mMuMZCgUeZLwIvMI4vD+c/3p0cgfYA zUXFZKB+w8hB8MALC1ljxiRkjnvjafAH2nMwE9gEQp34g+Y7AiqtkY2AjwDWmQjfmu+D ALRimdr4C5zd7dgDduPpbm+5IZmJii5hkQVIFGhpLcPn8uMNW7n+Cl7n57MxlrLsqZJc 1DqA== X-Gm-Message-State: AOJu0YzVlfuHpp7Q9kU3bbpjWsRV9vg3KMe78HSznLdf0OQen8ECzpLz QfHYa4IDLBqDyr0FCqYsSpNxhuyZInV7UQN6WdLE9/3X+WChMLJM4C8lDWKxBT/e57BMr3SyxN3 n1j8O1gLuNdLL0ucOGu/ecWZwIFscKEh6 X-Gm-Gg: ASbGncvs6Vm04SuoXY4+jEljcJsBq4xZS2uDFbq642d7ufns6mh0Oa+zsRjkg79qRcd u0Jvt5VBh9ZB0JIpma+unG7GSmaYFSRdRMEYcgOgeB0YZL/FB+POKiQHbdnifrA== X-Google-Smtp-Source: AGHT+IHaguOdInENh9+/IoeZKlb6PGUSBrr1O6SV4u1l+IZTqiQtKOd1qWsK2ZkDngueIoMTl/x5Rhr6piNZpi7LRJE= X-Received: by 2002:a05:6830:6506:b0:71d:4c3b:f464 with SMTP id 46e09a7af769-71d65ca9952mr4047331a34.13.1732727638273; Wed, 27 Nov 2024 09:13:58 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Reply-To: erictnorris@gmail.com Date: Wed, 27 Nov 2024 12:13:42 -0500 Message-ID: Subject: [PHP-DEV] [RFC] [Discussion] Persistent curl share handle improvement To: PHP internals Content-Type: text/plain; charset="UTF-8" From: eric.t.norris@gmail.com (Eric Norris) Hello again internals, Similar to the Random Extension improvement RFC (https://wiki.php.net/rfc/random_extension_improvement), I am creating an RFC to address possible improvements to the recently accepted curl share persistence RFC (https://wiki.php.net/rfc/curl_share_persistence). https://wiki.php.net/rfc/curl_share_persistence_improvement After making changes based on feedback in the original implementation pull request (https://github.com/php/php-src/pull/15603), I had some free time to explore an alternative implementation that addressed concerns brought up after voting. https://github.com/php/php-src/pull/16937 The result, I think, is actually an improvement over the original. Using a separate class provides a nice benefit of preventing accidental mutation, not having to pick a persistent ID is one less thing for the user to think about, etc. The RFC has two voting choices, the first is to accept the new signature over the old one. I have noted that this will require a 2/3 majority, but please correct me if this only requires a plurality. The second is to disallow CURL_LOCK_DATA_COOKIE as a $share_option. I believe this is the right choice to start with - we can always relax the restriction later - but I am presenting it as a second vote in case people feel strongly otherwise. I do not think that a disagreement over CURL_LOCK_DATA_COOKIE should potentially block the acceptance of a new function signature. I plan on opening the vote in two weeks barring any major discussion. I will likely leave the vote open for longer than two weeks, considering the holiday period. Thanks for your time and the feedback so far!