@Override
    public Socket createSocket() throws IOException {
        if (instantiationException != null) {
            throw instantiationException;
        }
        if (useEngineSocket) {
            return createEngineSocket((SSLParametersImpl) sslParameters.clone());
        } else {
            return createFileDescriptorSocket((SSLParametersImpl) sslParameters.clone());
        }
    }
Configures the socket to be created for this instance. If not called,
{@link #useEngineSocketByDefault} will be used.
common/src/main/java/org/conscrypt/OpenSSLSocketFactoryImpl.java