if (host == null) {
throw new IOException(Messages.getString("HttpsURLConnection.noHost")); //$NON-NLS-1$
}
int port = url.getPort();
try {
socket = new SSLSocket(host, port == -1 ? 443 : port);
} catch (SSLException ex1) {
throw new SSLIOException(ex1);
}
}