private boolean isDelegating() {
        // Checking for null to handle the case of calling virtual methods in the super class
        // constructor.
        return socket != null && socket != this;
    }
Called by {@link #notifyHandshakeCompletedListeners()} to get the currently active session.
Unlike {@link #getSession()}, this method must not block.
common/src/main/java/org/conscrypt/AbstractConscryptSocket.java