When the connection refuses some senders of an outgoing flow, the flow goes on with the others while a sender of its main kind is still live (video for a screen, audio otherwise), and fails as a whole otherwise. Three hand-written copies of this had drifted: a failed attach, a slot that could not be rebound, and a refused local offer. They now call rejectSenders, which fails an output only through failOutput. What changes at each site: - A refused offer that leaves no live picture marked the output failed and reported it, but left its other senders attached and their tracks in the flow's stream: a failed flow that kept sending. It now releases every sender and empties the stream, once, like the other two paths. The report is made as the flow fails, inside the pass over the flows, as resync already does; its listener only writes a message. - A failed attach and a failed rebind also removed the flow's other senders that were not live. A sender is not live when its track has ended, and also while its slot is still being rebound, which a refused offer finds queued behind it. Nothing refused those senders, so they stay with the owner that will finish or retire them, as the offer path already had it. A companion that was being attached is no longer dropped without a report because a different sender failed. - The main kind is read from the source in all three; the offer path read it from the carrier, which has the same kind. Each site keeps what only it knows: an attach refuses the senders it added in this attempt, a rebind its one slot, an offer the sender and track pairs it carried that differ from the confirmed ones. Two cases in a new transport test hold the offer path: no picture left releases the established sound and reports once, and a live picture keeps the senders the offer did not carry. The first fails before this change.
407e2ca19e
·
2026-11-29 18:36:54 +08:00
History