Create multicast report channel before checking backpressure

This commit is contained in:
evgeny committed 2026-10-20 15:05:16 +02:00
1 parent 2d64a70749
commit 2da295eef5
2 files changed
+13 -1

No files matched your search

+4
View File
@@ -335,6 +335,10 @@ static int mc_report_send(struct multicast_ctx* ctx, struct mc_report* r) {
d->on_loss(ctx->inst, &r->loss, d->arg);
return 1;
}
if (!etcp_router_conn_get(ctx->inst, r->loss.group_id, r->loss.source_node_id, ETCP_RT_ID_MULTICAST_REPORT)) {
DEBUG_ERROR(MC_CAT, "multicast report channel allocation failed source=%016llx",
(unsigned long long)r->loss.source_node_id); return -1;
}
while (r->cursor < r->loss.recipient_count) {
if (!etcp_router_send_q_has_room(ctx->inst, r->loss.group_id, r->loss.source_node_id, ETCP_RT_ID_MULTICAST_REPORT)) {
etcp_router_on_send_ready(ctx->inst, r->loss.group_id, r->loss.source_node_id,