docs: protected void endRequest() {
          int oldState, newState;
          do {
              oldState = state;
              newState = oldState - 1;
          } while (!stateUpdater.compareAndSet(this, oldState, newState));
          if (newState == CLOSED) {
              handleCompleted();
          }
      }