mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
simplify pacing logic by introducing a SendPacingLimited send mode
This commit is contained in:
parent
470ae7b39b
commit
9d70bc24a5
8 changed files with 28 additions and 47 deletions
|
@ -756,6 +756,9 @@ func (h *sentPacketHandler) SendMode() SendMode {
|
|||
}
|
||||
return SendAck
|
||||
}
|
||||
if !h.congestion.HasPacingBudget() {
|
||||
return SendPacingLimited
|
||||
}
|
||||
return SendAny
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue