void terminateRequest() {
        int oldVal = state;
        if (allAreSet(oldVal, FLAG_REQUEST_TERMINATED)) {
            // idempotent
            return;
        }
        if (requestChannel != null) {
            requestChannel.requestDone();
        }
        this.state = oldVal | FLAG_REQUEST_TERMINATED;
        if (anyAreSet(oldVal, FLAG_RESPONSE_TERMINATED)) {
            invokeExchangeCompleteListeners();
        }
    }
void terminateRequest ( ) { int oldVal = state ; if ( allAreSet ( oldVal , FLAG_REQUEST_TERMINATED ) ) { return ; } if ( requestChannel != null ) { requestChannel . requestDone ( ) ; } this . state = oldVal | FLAG_REQUEST_TERMINATED ; if ( anyAreSet ( oldVal , FLAG_RESPONSE_TERMINATED ) ) { invokeExchangeCompleteListeners ( ) ; } }
Force the codec to treat the request as fully read.  Should only be invoked by handlers which downgrade
the socket or implement a transfer coding.