Judge loss by arrival order and a deadline, one tx ring per stream
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user