Add option to use different pacer with send side bwe. (#3552)
Seeing a lot of queuing delay based back offs. Trying a couple of things 1. Accept a bit more queuing. 2. An option to try a different pacer. Would like to try with pass through. That will produce some out-of-order packets. Remains to be seen if it will have a negative impact.
This commit is contained in:
@@ -491,7 +491,14 @@ func NewPCTransport(params TransportParams) (*PCTransport, error) {
|
||||
Config: params.CongestionControlConfig.SendSideBWE,
|
||||
Logger: params.Logger,
|
||||
})
|
||||
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
|
||||
switch pacer.PacerBehavior(params.CongestionControlConfig.SendSideBWEPacer) {
|
||||
case pacer.PacerBehaviorPassThrough:
|
||||
t.pacer = pacer.NewPassThrough(params.Logger, t.bwe)
|
||||
case pacer.PacerBehaviorNoQueue:
|
||||
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
|
||||
default:
|
||||
t.pacer = pacer.NewNoQueue(params.Logger, t.bwe)
|
||||
}
|
||||
} else {
|
||||
t.bwe = remotebwe.NewRemoteBWE(remotebwe.RemoteBWEParams{
|
||||
Config: params.CongestionControlConfig.RemoteBWE,
|
||||
|
||||
Reference in New Issue
Block a user