Mark last run of grow bucket outside goroutine. (#4348)
* straem tracker debug logging * tracker * debug * clean up
This commit is contained in:
@@ -1209,13 +1209,13 @@ func (b *BufferBase) maybeGrowBucket(now int64) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
b.lastBucketCapCheckAt = now
|
||||||
|
|
||||||
// check and allocate in a go routine, away from the forwarding path
|
// check and allocate in a go routine, away from the forwarding path
|
||||||
go func() {
|
go func() {
|
||||||
b.Lock()
|
b.Lock()
|
||||||
defer b.Unlock()
|
defer b.Unlock()
|
||||||
|
|
||||||
b.lastBucketCapCheckAt = now
|
|
||||||
|
|
||||||
cap := b.bucket.Capacity()
|
cap := b.bucket.Capacity()
|
||||||
maxPkts := b.params.MaxVideoPkts
|
maxPkts := b.params.MaxVideoPkts
|
||||||
if b.codecType == webrtc.RTPCodecTypeAudio {
|
if b.codecType == webrtc.RTPCodecTypeAudio {
|
||||||
|
|||||||
Reference in New Issue
Block a user