protected void release() {
    if (networkReceive != null) {
      networkReceive.getReceivedBytes().release();
    }
    if (networkSend != null && networkSend.shouldReleaseOnError()) {
      networkSend.getPayload().release();
    }
  }
Close the connection for the socket channel
ambry-network/src/main/java/com/github/ambry/network/Transmission.java