From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 018451F4CC for ; Thu, 12 Dec 2024 10:50:32 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=dcICPaQo; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=hGW1ejCJ; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734000600; bh=bGDFSULuvxmJMLDuUqszyF7/QL+DO+CQe0zbIRh/l6k=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=dcICPaQo6Ps9Wx+0Yw1NNkhYaaHwVbsgSumXlAGhGZU3gz/RmhtUgaipJQVZ1pW5/ n5XH98+OuuAvCQonV2xtBVbEkZJmtWK6J6qEe9ia1TV76Nsh39AO+4Z/2Z7IPm3KNy QJcyDQDYVp2SRKP6EFizUL+znhozSiMyt8d3hX8I= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id C8241460CD for ; Thu, 12 Dec 2024 10:50:00 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=hGW1ejCJ; dkim-atps=neutral Received: from s.wfbtzhsv.outbound-mail.sendgrid.net (s.wfbtzhsv.outbound-mail.sendgrid.net [159.183.224.104]) by nue.mailmanlists.eu (Postfix) with ESMTPS id C64BF46019 for ; Thu, 12 Dec 2024 10:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=ekNY4KDjsmaHpTykBMes/81jJ7nTQpfASGCYWDrViYE=; b=hGW1ejCJc9U2lF2doF2Cy4KVdTETLTo+FQ2/ej2exninFXO3wqBMXsnrVL/6xaiSo/f2 +4Gz5ejIFhZX1oIgCvdhhD2RTuZzPLgbBMXZjkAFclyPpHbqlrwrWCh6kh8LtxG8c8EfpL URN8JjyZn2AHVgU70/JRiGRJP9U9fzqVs7oJoXr1ttwDxAmRWSXtcuF5ZDy0Q17qQLw3VT g+8/ZHsxAMTIdVjjYnTzDCA5DpIZWA2PNdTWNlMxsnsH8mctj35Apn7aiZMTAMxcGZze2/ 02oXJp8UQgYPwuoldteyr+FsHFbxDzaX18Oxr9BUgyNalRepuhywOeDtPczLdqfg== Received: by recvd-5f54b5d587-dwrhj with SMTP id recvd-5f54b5d587-dwrhj-1-675ABFAA-13 2024-12-12 10:49:14.39316556 +0000 UTC m=+2381259.321756287 Received: from herokuapp.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id 3UGGXi_hQwihahJwc9D1bg for ; Thu, 12 Dec 2024 10:49:14.318 +0000 (UTC) Date: Thu, 12 Dec 2024 10:49:14 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20935 X-Redmine-Issue-Author: shioimm X-Redmine-Issue-Priority: Normal X-Redmine-Sender: mame X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96886 X-SG-EID: =?us-ascii?Q?u001=2Ep+ckLDtT+4Y5c+H0YCkEnsuWiCQmn3OZA=2F9FzjoR6ZZlPaMv54M7EFoSM?= =?us-ascii?Q?CX5Trc79ep2R5F+0oYS4n23jq1cv+uAdkzxxcED?= =?us-ascii?Q?1cKmlShkCaWVh7KyR=2FqtuwNlK+LbFuLmjbI+tHD?= =?us-ascii?Q?wytZ9ztxUBVlh8lBVc2sfN78BQRcqRfvRWZMMte?= =?us-ascii?Q?C8a8JrkK4tInqCNOZR5Q2d7avEwnhifTuK0=2Fh3a?= =?us-ascii?Q?cqxIp7ndt9Lam0FQ4x6Z=2FkF+=2FR22VNHru2GtSfo?= =?us-ascii?Q?PNhG?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: PSBB4YXKEPXVVOHPXSBWD5CN2NPEPHQZ X-Message-ID-Hash: PSBB4YXKEPXVVOHPXSBWD5CN2NPEPHQZ X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120209] [Ruby master Feature#20935] API for Globally Enabling/Disabling Happy Eyeballs Version 2 in the Socket Class List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "mame (Yusuke Endoh) via ruby-core" Cc: "mame (Yusuke Endoh)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20935 has been updated by mame (Yusuke Endoh). @matz approved the new API, and also wanted a configuration to stop happy eyeballs by an environment variable: `RUBY_TCP_NO_FAST_FALLBACK=1`. ---------------------------------------- Feature #20935: API for Globally Enabling/Disabling Happy Eyeballs Version 2 in the Socket Class https://bugs.ruby-lang.org/issues/20935#change-110972 * Author: shioimm (Misaki Shioi) * Status: Open ---------------------------------------- When introducing Happy Eyeballs Version 2 to `Socket.tcp` (https://bugs.ruby-lang.org/issues/20108), it was pointed out that there should be a way to disable this feature (https://bugs.ruby-lang.org/issues/20108#note-7). To address this, I added `fast_fallback: true or false` keyword argument to both `Socket.tcp` and `TCPSocket.new`. Additionally, I introduced two singleton methods to the `Socket` class: `tcp_fast_fallback=` and `tcp_fast_fallback`. These can be used as follows: ```ruby Socket.tcp(host, port, fast_fallback: true) TCPSocket.new(host, port, fast_fallback: true) # Globally controlling HEv2 Socket.tcp_fast_fallback = true # => true Socket.tcp_fast_fallback # => true ``` I apologize for this after the implementation, but I would like to discuss whether adding these APIs is appropriate. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/