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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D6D0D1F508 for ; Sat, 1 Feb 2025 22:19:40 +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=kfwDD4KV; 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=BI5dDHK8; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1738448377; bh=kyxtK7GIJu19LfNyjxysXxwb7VS/WmjNBa26KEhPm34=; 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=kfwDD4KV0KzhY9YU1zS1TOvL7x88scdsyJCJG0E1flE7SrzmIjdDA8gi+O9PObf2r /9rfxNRwB319O2+MpKHNENlH+Dut/BSdjYK8eBosfFT+pezCdU91gEXfvzs+K0EF/G nzCXWh9I/UZz+WDxCKgigmnc9MfBsX0d4AdlF24Q= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id B57B94689E for ; Sat, 1 Feb 2025 22:19:37 +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=BI5dDHK8; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 9FE4446883 for ; Sat, 1 Feb 2025 22:19:32 +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=au+hg4uc0lD5dOA5M0xqbUgcTQ3gLaV+Wsjaq+X444U=; b=BI5dDHK8pHUkQtsGlwi6i5TBO+w2NVClNql4OjX2BJvN52VcDTbZ4717lL+6q4lBEIWe AlTt68AGkdGJBNJuA35yYhBMKpk+Molm3QG41CBSFGVqXSk5uF6VFZDBcpBpuiDXlqgteE 09IMEvA61IB9GBJXzGN0Q5DOmXiUZa2AtXvERjak/B6An2IEki/qK62E9GsHTu/y9zrbvk vMg/AkybUz5MyqniCsE7714g0UQk4sc9A2ZuAwXv/IYTbDW+3AGa4ZWF+sum1StiUZ1gVe CSdxgXeE207K0SpU3pe6k0913oc0zeraK7LOYAzMaJ2WJYUYToCat3sPMdvjRWpw== Received: by recvd-5f9ffdf494-b2fbv with SMTP id recvd-5f9ffdf494-b2fbv-1-679E9DF3-E 2025-02-01 22:19:31.717621096 +0000 UTC m=+6829352.033407870 Received: from herokuapp.com (unknown) by geopod-ismtpd-36 (SG) with ESMTP id e6fXr_mjQKq8fiXGjmoOFA for ; Sat, 01 Feb 2025 22:19:31.648 +0000 (UTC) Date: Sat, 01 Feb 2025 22:19:31 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21104 X-Redmine-Issue-Author: mjt58 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: mjt58 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: 97571 X-SG-EID: =?us-ascii?Q?u001=2E0OLEj3SXAt5jWrp3sNnLyNePTP+mVJMnOc8RlzMwjbCOKedp=2FdPas3=2FiO?= =?us-ascii?Q?RSz+JHUaLR3lSJhoNHuo5KSStcrUB1flU4bYzT=2F?= =?us-ascii?Q?LAfTrnnZ0uy9slhcx=2FBItZnY9y6xcm6K01dYZl8?= =?us-ascii?Q?3q0+SUDC4xMnygQn1ehxmdCuJu9oJKqFQ=2F5Qg7N?= =?us-ascii?Q?FKEngo6OaBeK5B5=2FdMugfYQ2Q+oAiurzf2MnHdr?= =?us-ascii?Q?dFksNAJk8071sj2xq9oUIpVmH6KW8LJYzXO2Kal?= =?us-ascii?Q?KqAmd=2F8KxPJrXbCCIkpkSal=2FNw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: TF5ASQFDFYOWIG2GVXMF3P2AD2TULP4L X-Message-ID-Hash: TF5ASQFDFYOWIG2GVXMF3P2AD2TULP4L 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:120855] [Ruby master Bug#21104] Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "mjt58 (Mike Thompson) via ruby-core" Cc: "mjt58 (Mike Thompson)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21104 has been reported by mjt58 (Mike Thompson). ---------------------------------------- Bug #21104: Net::HTTP connections failing in Ruby >= 3.4.0 on macOS with Happy Eyeballs enabled https://bugs.ruby-lang.org/issues/21104 * Author: mjt58 (Mike Thompson) * Status: Open * ruby -v: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- A project I work on recently upgraded Ruby to 3.4.1 from 3.3.5. Following the upgrade, and when running locally on my Mac, all attempts to connect to an external service within the project over http(s) fail. We use `mise` for managing development tool dependencies, including Ruby, and I am using macOS 15.3. For example running something as simple as: ``` require 'net/http' puts Net::HTTP.get(URI('https://bbc.co.uk')) ``` Will fail with the following stack trace: ``` /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/protocol.rb:46:in 'OpenSSL::SSL::SSLSocket#connect_nonblock': Connection reset by peer - SSL_connect (Errno::ECONNRESET) from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/protocol.rb:46:in 'Net::Protocol#ssl_socket_connect' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1736:in 'Net::HTTP#connect' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1636:in 'Net::HTTP#do_start' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1625:in 'Net::HTTP#start' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1064:in 'Net::HTTP.start' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:824:in 'Net::HTTP.get_response' from /path/to/.local/share/mise/installs/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:805:in 'Net::HTTP.get' from request.rb:2:in '
' ``` I tried different versions of Ruby and confirmed that the issue appears with 3.4.0. After reading the release notes for this version, I tried setting `RUBY_TCP_NO_FAST_FALLBACK=1` and this worked, allowing me to work around the problem. This issue has also been encountered by others, please see: https://github.com/rubygems/rubygems/issues/8390 -- 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/