Merge pull request #6593 from urbit/philip/ames

ames: packet retry tweaks
This commit is contained in:
Ted Blackman 2023-05-17 11:21:17 -04:00 committed by GitHub
commit 5c92856d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2886,6 +2886,10 @@
:: expire direct route if the peer is not responding
::
=. peer-state (update-peer-route her peer-state)
:: required so that the following +send-blob's (including
:: inside +call:mu), access up-to-date peer state
::
=. event-core abet
:: resend comet attestation packet if first message times out
::
:: The attestation packet doesn't get acked, so if we tried to
@ -4449,7 +4453,7 @@
:: if this was a re-send, don't adjust rtt or downstream state
::
?: (gth tries.packet-state 1)
metrics
metrics(rto (clamp-rto (add rtt (mul 4 rttvar))))
:: rtt-datum: new rtt measurement based on packet roundtrip
::
=/ rtt-datum=@dr (sub-safe now last-sent.packet-state)