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 BE8F81940D33 for ; Fri, 12 Jun 2015 17:40:51 +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 D054DB5D92C for ; Fri, 12 Jun 2015 18:02:16 +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 E6ECF97A836 for ; Fri, 12 Jun 2015 18:02:18 +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 87x_f0oVR8Cp for ; Fri, 12 Jun 2015 18:02:18 +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 AABEC97A834 for ; Fri, 12 Jun 2015 18:02:18 +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 7F87895241A for ; Fri, 12 Jun 2015 18:02:16 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E132512045A; Fri, 12 Jun 2015 18:02:15 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id D148212044A for ; Fri, 12 Jun 2015 18:02:10 +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=Y0TPAN+Nkkrr4NcjYAbIgr9/uuw=; b=xtxJ4J7dLix/7DcLrp H6Dmoij+/r+J/Cygg3l0VOO+YmfSfyIZcoZeJD4RNusGkbUATM/fmGs83jcAljqU OJ7dr44XHxQHUM6yNwjHpA34SkWhqFW/xULrpMXFtZ4I7goDRxc8iXm1y93SCXh3 q5F9DOQqFUEIQqdBZaO5+IyJM= Received: by filter0435p1mdw1.sendgrid.net with SMTP id filter0435p1mdw1.28984.557AA00928 2015-06-12 09:02:04.466559901 +0000 UTC Received: from herokuapp.com (ec2-54-82-156-22.compute-1.amazonaws.com [54.82.156.22]) by ismtpd-021 (SG) with ESMTP id 14de7013030.867.8c552 Fri, 12 Jun 2015 09:02:04 +0000 (UTC) Date: Fri, 12 Jun 2015 09:02:03 +0000 From: michiel@karnebeek.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: 44058 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10533 X-Redmine-Issue-Author: drbrain X-Redmine-Issue-Assignee: drbrain X-Redmine-Sender: mkarnebeek 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7StqAFD3raQT+lg2ByvyblnKQoX33U8n+PAY 3VsgTHbmTM45grr/IZyztu1HW2pFHgSlnm1Z5qnJnKTvv+ZfdAULq8IQH7QzrG1vBZi4qhyYlZaxkW 6H3PC+rjpsmwaCWNukEi+j0fTZ/SicQsljvp X-ML-Name: ruby-core X-Mail-Count: 69544 Subject: [ruby-core:69544] [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 Michiel Karnebeek. The patch does not seem to solve the reported issue. Reconnecting HTTP connections still do not send an SNI. I'm running ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] and checked using Wireshark. ---------------------------------------- Bug #10533: HTTP reconnection with SNI does not send correct hostname https://bugs.ruby-lang.org/issues/10533#change-52875 * 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/