@Override
    @SuppressWarnings("UnsynchronizedOverridesSynchronized")
    public void close() throws IOException {
        if (isDelegating()) {
            if (autoClose && !socket.isClosed()) {
                socket.close();
            }
        } else {
            if (!super.isClosed()) {
                super.close();
            }
        }
    }
Try to extract the peer's hostname if it's available from the endpoint address.
common/src/main/java/org/conscrypt/AbstractConscryptSocket.java