jruby/jruby — pull request #349 by ptoomey3 (2012-10-18 16:48:14+00:00)
Title: Improved support for Server Name Indication (SNI)

Fixes JRUBY-6891, JRUBY-6944, and should fix JRUBY-6771 (unverified).

Java 7 and greater supports SNI when creating SSL Sockets.
JRuby's origional support performed unnecessary reverse DNS
lookups if the SSL destination was an IP address instead
of a hostname. This patch is more inline with how MRI
works, as it requires the developer to explicitly
set a hostname, thus avoiding any reverse lookups.