@Override
    public Socket connectSocket(
            final TimeValue connectTimeout,
            final Socket socket,
            final HttpHost host,
            final InetSocketAddress remoteAddress,
            final InetSocketAddress localAddress,
            final HttpContext context) throws IOException {
        final Timeout timeout = connectTimeout != null ? Timeout.of(connectTimeout.getDuration(), connectTimeout.getTimeUnit()) : null;
        return connectSocket(socket, host, remoteAddress, localAddress, timeout, timeout, context);
    }
Performs any custom initialization for a newly created SSLSocket
(before the SSL handshake happens).

The default implementation is a no-op, but could be overridden to, e.g.,
call {@link javax.net.ssl.SSLSocket#setEnabledCipherSuites(String[])}.
@throws IOException may be thrown if overridden
httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java