{"action":"created","issue":{"url":"https://api.github.com/repos/ruby/ruby/issues/1312","repository_url":"https://api.github.com/repos/ruby/ruby","labels_url":"https://api.github.com/repos/ruby/ruby/issues/1312/labels{/name}","comments_url":"https://api.github.com/repos/ruby/ruby/issues/1312/comments","events_url":"https://api.github.com/repos/ruby/ruby/issues/1312/events","html_url":"https://github.com/ruby/ruby/pull/1312","id":145292270,"number":1312,"title":"ossl_ssl.c: Fix for empty SNI to TLS requests","user":{"login":"jconroy77","id":6841619,"avatar_url":"https://avatars.githubusercontent.com/u/6841619?v=3","gravatar_id":"","url":"https://api.github.com/users/jconroy77","html_url":"https://github.com/jconroy77","followers_url":"https://api.github.com/users/jconroy77/followers","following_url":"https://api.github.com/users/jconroy77/following{/other_user}","gists_url":"https://api.github.com/users/jconroy77/gists{/gist_id}","starred_url":"https://api.github.com/users/jconroy77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jconroy77/subscriptions","organizations_url":"https://api.github.com/users/jconroy77/orgs","repos_url":"https://api.github.com/users/jconroy77/repos","events_url":"https://api.github.com/users/jconroy77/events{/privacy}","received_events_url":"https://api.github.com/users/jconroy77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-01T21:45:04Z","updated_at":"2016-04-02T07:08:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ruby/ruby/pulls/1312","html_url":"https://github.com/ruby/ruby/pull/1312","diff_url":"https://github.com/ruby/ruby/pull/1312.diff","patch_url":"https://github.com/ruby/ruby/pull/1312.patch"},"body":"* ext/openssl/ossl_ssl.c (ossl_ssl_setup): Only add SNI to TLS requests\r\n  if hostname string length is > 0 (0-length SNI values violate spec)."},"comment":{"url":"https://api.github.com/repos/ruby/ruby/issues/comments/204662728","html_url":"https://github.com/ruby/ruby/pull/1312#issuecomment-204662728","issue_url":"https://api.github.com/repos/ruby/ruby/issues/1312","id":204662728,"user":{"login":"jconroy77","id":6841619,"avatar_url":"https://avatars.githubusercontent.com/u/6841619?v=3","gravatar_id":"","url":"https://api.github.com/users/jconroy77","html_url":"https://github.com/jconroy77","followers_url":"https://api.github.com/users/jconroy77/followers","following_url":"https://api.github.com/users/jconroy77/following{/other_user}","gists_url":"https://api.github.com/users/jconroy77/gists{/gist_id}","starred_url":"https://api.github.com/users/jconroy77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jconroy77/subscriptions","organizations_url":"https://api.github.com/users/jconroy77/orgs","repos_url":"https://api.github.com/users/jconroy77/repos","events_url":"https://api.github.com/users/jconroy77/events{/privacy}","received_events_url":"https://api.github.com/users/jconroy77/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T07:08:28Z","updated_at":"2016-04-02T07:08:28Z","body":"http://tools.ietf.org/html/rfc4366#section-3.1\r\n\r\nHostName<1..2^16-1>\r\n\r\nThough reading a bit further into it, they also specifically exclude IPv4 and IPv6 addresses from being used as well.\r\n\r\nMy issue had been related to a dev that used an empty hostname string when calling HTTP.new() to do requests against localhost, which then failed while negotiating the TLS session."}}