@Override
  public void close(String conn) {
    if (connectionIds.contains(conn)) {
      closedConnections.add(conn);
      receives.removeIf((receive) -> {
        boolean r = conn.equals(receive.getConnectionId());
        if (r) {
          receive.getReceivedBytes().release();
        }
        return r;
      });
    }
  }
Close the given connection.
@param conn connection id to close.
ambry-network/src/test/java/com/github/ambry/network/SocketNetworkClientTest.java