From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 7E29D1F45A for ; Thu, 15 Aug 2019 19:50:04 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id CCB2C120A05; Fri, 16 Aug 2019 04:49:55 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id ECA8B1209F5 for ; Fri, 16 Aug 2019 04:49:53 +0900 (JST) Received: by filter0074p3mdw1.sendgrid.net with SMTP id filter0074p3mdw1-2218-5D55B765-3 2019-08-15 19:49:57.105194621 +0000 UTC m=+1730269.165154007 Received: from herokuapp.com (unknown [3.91.250.81]) by ismtpd0036p1iad2.sendgrid.net (SG) with ESMTP id VV7cmS3CRJuwtSeIBeVLbg for ; Thu, 15 Aug 2019 19:49:56.966 +0000 (UTC) Date: Thu, 15 Aug 2019 19:49:57 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 69918 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 8590 X-Redmine-Issue-Author: yhara X-Redmine-Issue-Assignee: naruse X-Redmine-Sender: jeremyevans0 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-SG-EID: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BI=2FYE2eKzbOVMHn0+JzehtywFYormPGnUz0RtRi?= =?us-ascii?Q?0H0BU1BCOVWo6V1J5nyfWrBsbXAtNGthXL29ElK?= =?us-ascii?Q?u0+rRVqU1eqllrd=2FbOSd5SHcHB8WpK1dHJrkian?= =?us-ascii?Q?IYxr=2F2u15tFyoN1Qv0NgE=2Fw9Z8a1qdY3seQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94371 Subject: [ruby-core:94371] [Ruby master Bug#8590] Second call of https.get results in timeout X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #8590 has been updated by jeremyevans0 (Jeremy Evans). Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN) Status changed from Feedback to Closed I think this was fixed by commit:711ece42cddc4737a4b1667b1f20ca74030d0255. ---------------------------------------- Bug #8590: Second call of https.get results in timeout https://bugs.ruby-lang.org/issues/8590#change-80785 * Author: yhara (Yutaka HARA) * Status: Closed * Priority: Normal * Assignee: naruse (Yui NARUSE) * Target version: * ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0] * Backport: ---------------------------------------- Hi, In the following code, second call of https.get results in an error "Connection reset by peer - SSL_connect" after timeout. --- require "net/https" https = Net::HTTP.new("secure.nicovideo.jp", 443) #https = Net::HTTP.new("www.sbisec.co.jp", 443) # same result for this server https.use_ssl = true https.ssl_version = 'TLSv1' https.start{ p https.get('/') } #=> OK https.start{ p https.get('/') } #=> (Timeout) --- Expected: prints response twice Actual: prints response once, and raises the following error after timeout /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `connect': Connection reset by peer - SSL_connect (Errno::ECONNRESET) from /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `block in connect' from /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/timeout.rb:52:in `timeout' from /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/http.rb:918:in `connect' from /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/http.rb:862:in `do_start' from /Users/yhara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/http.rb:851:in `start' Is this a bug of Net::HTTP, or a problem of the server, or just I'm doing something wrong? Thanks in advance. ---Files-------------------------------- net.http.reuse_ssl_session.patch (2.62 KB) -- https://bugs.ruby-lang.org/