Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125914 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 685AD1A00BD for ; Tue, 5 Nov 2024 19:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730835482; bh=D0tg9ZB+cS5LZ5fe6jaMMkD7UpeDeLcRoO/kxvQIC2k=; h=References:In-Reply-To:Reply-To:From:Date:Subject:To:From; b=ZKeuHg1SJ7Oq02FsTJTZ1zsCVOEciUlhZwp7sus8KOTNOOhg1/yX8zqx0pKzpSdrK bM/sUjXUyz1oxR4Nr+e16iBUuDrtBdZZjR47/l3WK+BtPe/TddT9q1AhpwhchFHd3z Hx76UzUlvQ3wrPzApUH1YUlA4RmfGiN4drfMlcx/v6rkbPg6RxymJQLWtcumUgZMxK xZz5jgyUI6miH0ubhTveBgzPkVP0FElebYHUwbrt5kJBbPGD5RWmM09zYNKEA/uf/7 D0cWq9ril57osQ3gLRQ60ekjT6jk0vj158jUe0tTTsGbMvCi5rcsVNvTH3sE3RCY1p dwAovCz41mLGA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5DE1A18006F for ; Tue, 5 Nov 2024 19:38:02 +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_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-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 ; Tue, 5 Nov 2024 19:38:01 +0000 (UTC) Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-3a6ace3b6a5so16590365ab.1 for ; Tue, 05 Nov 2024 11:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730835328; x=1731440128; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=D0tg9ZB+cS5LZ5fe6jaMMkD7UpeDeLcRoO/kxvQIC2k=; b=ccShEuVN84/dFTpI+5Tcw3hy8MkBpvn5nZwhupyj84abDnv5hbB0FfAMJw3Rik1Tiy pZFf9eFruRJu/11jy6+TY8mxc1IZBAvNGX02qlQvRGYOgHFAJx0bWSCqB0iR5kIQE2Ve PTzcbFEjfZTRFlAJ0fBaHkoGh5qH0gmLLK4dawAF1OtB9WZvmH07EUj8x6pu6urdKnYX LbomTjXwPMl75Cubly2/8VAQfAmK7XWF7Rcc3WyiuDSptAUd20lBKVQ4kH0JlwHbWMt8 R8DVRB+nrr6puzs+5AoMO+f69z/hu1apRQVPz/i6lpXt11pq+zQN8VsYR1PdNmWaUoMx E+tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730835328; x=1731440128; h=content-transfer-encoding:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D0tg9ZB+cS5LZ5fe6jaMMkD7UpeDeLcRoO/kxvQIC2k=; b=uEaY7ddLklshJ1lreLP59BW3cukS8MntTm6sB3/YBD0RZF8r283u2Eexn0Q1EMk2wD 46I/O5g6SCfnOwAJiEmTQCV3dJ7jDz+7cOJB2CBE6QxBE3zuQher3Zv8bs8TK6bLYZqX 8LVkyPz2UagKPcc3L6FWK9pCahMdeT/riRWJ8YsHlb+9P6f3R73fnxrsFRCBV7Gl8sPX X4YmaEhbcL7W9uP4mP5Nc4JdR7sWtxEqBVlLvSrAcrJUGNNP0xIIgv5kAzgXYLrbGJh5 eQjG5G9v/vnTAYvzowD00ST0tRlvk7ZizFINhw3FzIG7iI2Cs7bSFH63ascEe8FHhUk0 DK/Q== X-Gm-Message-State: AOJu0Yy+rxTkHUfZKq6W3U8vS4+9qmz9yM+DKiD2L3kODm1l/XVhVgLg 0jtQriSrFBGUSP7jXMYQJKgejlzBygiiM4+Nj0kvTcBe3YWsSVbeHkd4Uu7km+rnVJWyu0zPEg+ k0eYWCZd3rXRuSHqbHR7ky1/Sl5p3HUL3 X-Google-Smtp-Source: AGHT+IEbSs41brQ1o+4/F0PzUmBSj+AomQSM2Bu1CUMv0KwbZsjnAEAyJMYgvA9WZ+LwgoMlSPpjk/QoxHiOOXsweVk= X-Received: by 2002:a05:6e02:220a:b0:3a6:c89d:4eb5 with SMTP id e9e14a558f8ab-3a6c89d50e2mr101250515ab.15.1730835328391; Tue, 05 Nov 2024 11:35:28 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <6e533102b9a2e9c8f6a2183440b2601a@bastelstu.be> <9dd47a928fd4dc673a137c6433cd3130@bastelstu.be> In-Reply-To: <9dd47a928fd4dc673a137c6433cd3130@bastelstu.be> Reply-To: erictnorris@gmail.com Date: Tue, 5 Nov 2024 14:35:12 -0500 Message-ID: Subject: Re: [PHP-DEV] [VOTE] Add persistent curl share handles To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: eric.t.norris@gmail.com (Eric Norris) > > That said, as I mentioned above I would be fine with removing cookie > > jar persistence if that was necessary to secure a passing vote, since > > it's not our primary focus. > > Given the information regarding the TLS re-use, the cookie sharing is my > only remaining concern. In fact with cookie sharing disabled it might > not even be necessary for the user to choose an ID: Given that libcurl > does the heavy lifting, as a user I should only need a single share > handle and let libcurl figure out the details, no? A boolean =E2=80=9Csha= re > connections across requests=E2=80=9D when initializing a CurlHandle shoul= d > probably sufficient. I realized I completely forgot to respond to this point. I had actually considered this when you first mentioned that you did not like choosable persistent IDs, but I think we'd need to consider how this would interact with CURLOPT_MAXCONNECTS. A single shared handle would mean a user couldn't create separate connection pools, and so it may cause churn if the pool size wasn't large enough. I don't think that's an insurmountable problem, however. I will raise that as a part of a v2 discussion attempt if this fails to pass.