@Override
  public NetworkRequest receiveRequest() throws InterruptedException {
    while (true) {
      NetworkRequest request = networkRequestQueue.take();
      http2ServerMetrics.requestQueuingTime.update(System.currentTimeMillis() - request.getStartTimeInMs());
      if (networkRequestQueue.isExpired(request)) {
        // If the request is stale, it means that server is overloaded and unable to process them in time. Reject the
        // request with backoff error code.
        rejectRequest(request, true);
        continue;
      }
      return request;
    }
  }
Closes the connection and does not send any response
ambry-network/src/main/java/com/github/ambry/network/NettyServerRequestResponseChannel.java