public void flush ()
    {
        //  The peer does not exist anymore at this point.
        if (state == State.terminating)
            return;

        if (outpipe != null && !outpipe.flush ()) {
            send_activate_read (peer);
        } 
    }