ames: ping faster to sponsors

This commit is contained in:
Ted Blackman 2023-04-05 11:59:06 -04:00
parent c1ce41e494
commit 66678acd3e

View File

@ -3310,13 +3310,19 @@
++ num-slots ++ num-slots
^- @ud ^- @ud
(sub-safe cwnd live-packets) (sub-safe cwnd live-packets)
::
:: +clamp-rto: apply min and max to an .rto value :: +clamp-rto: apply min and max to an .rto value
:: ::
++ clamp-rto ++ clamp-rto
|= rto=@dr |= rto=@dr
^+ rto ^+ rto
(min ~m2 (max ^~((div ~s1 5)) rto)) (min max-backoff (max ^~((div ~s1 5) rto)))
:: +max-backoff: calculate highest re-send interval
::
:: Keeps pinhole to sponsors open by inspecting the duct (hack).
::
++ max-backoff
^- @dr
?:(?=([[%gall %use %ping *] *] duct) ~s25 ~m2)
:: +in-slow-start: %.y iff we're in "slow-start" mode :: +in-slow-start: %.y iff we're in "slow-start" mode
:: ::
++ in-slow-start ++ in-slow-start