Judge loss by arrival order and a deadline, one tx ring per stream

This commit is contained in:
flamingcow
2026-08-31 14:33:09 -07:00
parent 06fa759b1a
commit 7fa48da73c
12 changed files with 220 additions and 254 deletions
+4
View File
@@ -535,6 +535,10 @@ func (c *cableDiag) kick(done *atomic.Bool) bool {
}
}
c.mu.Unlock()
// The judge can charge a masked-era loss up to one deadline after the
// wire went quiet, so the mask outlives the measure by that window —
// universally, rather than each source tracking its own tail.
time.Sleep(lossDeadline)
c.masked.Store(false)
}()
return true