From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id A468717DE18B for ; Wed, 18 Feb 2015 02:07:24 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 9557AB5D93F for ; Wed, 18 Feb 2015 02:10:11 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id CF43097A836 for ; Wed, 18 Feb 2015 02:10:12 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gnG7BGBY8J0W for ; Wed, 18 Feb 2015 02:10:12 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 5B58097A834 for ; Wed, 18 Feb 2015 02:10:12 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 88BB1952408 for ; Wed, 18 Feb 2015 02:10:08 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E1C48120491; Wed, 18 Feb 2015 02:10:05 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 929ED120460 for ; Wed, 18 Feb 2015 02:10:02 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=oo/b5CdvGujBBNHDX/wvFEG9FvE=; b=RITgYcIqoTcHFW/gAw 058YXtQTyxPBNbb2JUvCDjudda+nXteQhnRXNPbwU5Yj+ctRLlb8Y6FgKNIvjX/F AUqByYz6iPWvTK3+1hKK7sroitkkQ4zMA/fituJhe8KGyKbTN4atO8+Iqvctmy0m sQxMI+gEUEcPUgnthZnstiglw= Received: by filter0073p1mdw1.sendgrid.net with SMTP id filter0073p1mdw1.2257.54E375BE7 2015-02-17 17:09:18.991603858 +0000 UTC Received: from herokuapp.com (ec2-54-158-235-34.compute-1.amazonaws.com [54.158.235.34]) by ismtpd-025 (SG) with ESMTP id 14b9883f1a6.2f7c.2e46ff Tue, 17 Feb 2015 17:09:18 +0000 (UTC) Date: Tue, 17 Feb 2015 17:09:18 +0000 From: nagachika00@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 42582 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10533 X-Redmine-Issue-Author: drbrain X-Redmine-Issue-Assignee: drbrain X-Redmine-Sender: nagachika X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: OOF Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS58DOj87BISg5bzy4ijCYfjPgsxtwxR4GnNok RNXFKFvGuvNqP9QFQUFoMNxr/BpjN38asj1nXUqHQrs68mdVIzUR+33GfIAoZewTeLSmtTIyHtY9ya Pudb4sszyM/VIZfY6/DR9aElSq2xsYnftFxA X-ML-Name: ruby-core X-Mail-Count: 68155 Subject: [ruby-core:68155] [Ruby trunk - Bug #10533] HTTP reconnection with SNI does not send correct hostname 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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #10533 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: DONE, 2.1: REQUIRED to 2.0.0: DONE, 2.1: DONE r48563 and test for it (r46261,r48581) were backported into `ruby_2_1` branch at r49631. ---------------------------------------- Bug #10533: HTTP reconnection with SNI does not send correct hostname https://bugs.ruby-lang.org/issues/10533#change-51534 * Author: Eric Hodel * Status: Closed * Priority: Normal * Assignee: Eric Hodel * ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0] * Backport: 2.0.0: DONE, 2.1: DONE ---------------------------------------- When reconnecting after connection timeout on an SNI connection the server name is not sent during reconnect which results in a failed reconnection: ~~~ $ cat test.rb require 'net/http' uri = URI 'https://david.shanske.com' Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http| req = Net::HTTP::Get.new uri response = http.request req p response.code sleep 310 req = Net::HTTP::Get.new uri response = http.request req p response.code end $ ruby -v test.rb ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0] "200" /usr/local/lib/ruby/2.1.0/openssl/ssl.rb:178:in `post_connection_check': hostname "david.shanske.com" does not match the server certificate (OpenSSL::SSL::SSLError) from /usr/local/lib/ruby/2.1.0/net/http.rb:922:in `connect' from /usr/local/lib/ruby/2.1.0/net/http.rb:1447:in `begin_transport' from /usr/local/lib/ruby/2.1.0/net/http.rb:1404:in `transport_request' from /usr/local/lib/ruby/2.1.0/net/http.rb:1378:in `request' from test.rb:10:in `block in
' from /usr/local/lib/ruby/2.1.0/net/http.rb:853:in `start' from /usr/local/lib/ruby/2.1.0/net/http.rb:583:in `start' from test.rb:4:in `
' ~~~ ---Files-------------------------------- net.http.bug10533.patch (685 Bytes) -- https://bugs.ruby-lang.org/