private void handleUnwrapUnderflow() {
    int currentNetReadBufferSize = netReadBufferSize();
    netReadBuffer = Utils.ensureCapacity(netReadBuffer, currentNetReadBufferSize);
    if (netReadBuffer.position() >= currentNetReadBufferSize) {
      throw new IllegalStateException(
          "Buffer underflow when available data size (" + netReadBuffer.position() + ") >= packet buffer size ("
              + currentNetReadBufferSize + ")");
    }
  }
Increase the size of {@link #netReadBuffer}. To be called when an unwrap call returns
{@link Status#BUFFER_UNDERFLOW}.
ambry-network/src/main/java/com/github/ambry/network/SSLTransmission.java