Commit 7368b67c authored by Scott Vokes's avatar Scott Vokes
Browse files

If out of RX_INFOs, fail gracefully, don't trigger an assert.

parent ffa79a33
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1231,6 +1231,12 @@ static void hold_response(listener *l, int fd, int64_t seq_id, int16_t timeout_s
    struct bus *b = l->bus;
    
    rx_info_t *info = get_free_rx_info(l);
    if (info == NULL) {
        BUS_LOG_SNPRINTF(b, 0, LOG_LISTENER, b->udata, 128,
            "failed to get free rx_info for <fd:%d, seq_id:%lld>, dropping it",
            fd, (long long)seq_id);
        return;
    }
    BUS_ASSERT(b, b->udata, info);
    BUS_ASSERT(b, b->udata, info->state == RIS_INACTIVE);
    BUS_LOG_SNPRINTF(b, 5, LOG_LISTENER, b->udata, 128,