static inline bool is_ignorable_disconnect_error()

in dissociated-ipc/ucx_utils.h [110:121]


static inline bool is_ignorable_disconnect_error(ucs_status_t ucs_status) {
  // not connected, connection reset: we're already disconnected
  // timeout: most likely disconnected, but we can't tell from our end
  switch (ucs_status) {
    case UCS_OK:
    case UCS_ERR_ENDPOINT_TIMEOUT:
    case UCS_ERR_NOT_CONNECTED:
    case UCS_ERR_CONNECTION_RESET:
      return true;
  }
  return false;
}