code: @Override
      public void clear() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Clearing OSC: " + this);
          }
          if (null != getLink()) {
              getLink().clear();
          }
  
          //PI81572
          if (this.getHttpConfig().shouldPurgeRemainingResponseBody()) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Attempting to purge remaining response body");
              }
              try {
                  WsByteBuffer remainingData = getResponseBodyBuffer();
  
                  while (remainingData != null) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "Found data remaining on the response: " + remainingData);
                      }
                      remainingData.release();
                      remainingData = null;
  
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "Remaining response data released, reading for more");
                      }
                      remainingData = getResponseBodyBuffer();
                  }
              } catch (Exception e) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "Encountered an exception while reading for remaining response data: " + e);
                  }
              }
          }
  
          super.clear();
          setReadBuffer(null);
          // in case the read buffers still sit on the TCP layer, null them out
          getTSC().getReadInterface().setBuffers(null);
          this.callback_state = CALLBACK_STATE_IDLE;
          this.read_state = READ_STATE_IDLE;
          this.readException = null;
          this.bReadAheadEnabled = false;
          this.bImmediateRead = false;
          this.bTempResponsesUsed = false;
          this.bEarlyReads = false;
          this.numResponsesReceived = 0;
          if (getHttpConfig().runningOnZOS()) {
              // @LIDB3187-27.1 clean the statemap of the final write mark
              getVC().getStateMap().remove(HttpConstants.FINAL_WRITE_MARK);
          }
      }
docs: /*
  @see com.ibm.ws.http.channel.internal.HttpServiceContextImpl#clear()