mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
lull,ames: reference +mop
in $packet-pump-size
This commit is contained in:
parent
db0afd056e
commit
dafa1cc030
@ -1170,9 +1170,21 @@
|
|||||||
::
|
::
|
||||||
+$ packet-pump-state
|
+$ packet-pump-state
|
||||||
$: next-wake=(unit @da)
|
$: next-wake=(unit @da)
|
||||||
live=(tree [live-packet-key live-packet-val])
|
live=((mop live-packet-key live-packet-val) lte-packets)
|
||||||
metrics=pump-metrics
|
metrics=pump-metrics
|
||||||
==
|
==
|
||||||
|
:: +lte-packets: yes if a is before b
|
||||||
|
::
|
||||||
|
++ lte-packets
|
||||||
|
|= [a=live-packet-key b=live-packet-key]
|
||||||
|
^- ?
|
||||||
|
::
|
||||||
|
?: (lth message-num.a message-num.b)
|
||||||
|
%.y
|
||||||
|
?: (gth message-num.a message-num.b)
|
||||||
|
%.n
|
||||||
|
(lte fragment-num.a fragment-num.b)
|
||||||
|
::
|
||||||
:: $pump-metrics: congestion control state for a |packet-pump
|
:: $pump-metrics: congestion control state for a |packet-pump
|
||||||
::
|
::
|
||||||
:: This is an Ames adaptation of TCP's Reno congestion control
|
:: This is an Ames adaptation of TCP's Reno congestion control
|
||||||
|
@ -133,17 +133,6 @@
|
|||||||
[%live %unborn] `"; {(scow %p ship)} has sunk"
|
[%live %unborn] `"; {(scow %p ship)} has sunk"
|
||||||
[%dead %unborn] `"; {(scow %p ship)} has sunk"
|
[%dead %unborn] `"; {(scow %p ship)} has sunk"
|
||||||
==
|
==
|
||||||
:: +lte-packets: yes if a is before b
|
|
||||||
::
|
|
||||||
++ lte-packets
|
|
||||||
|= [a=live-packet-key b=live-packet-key]
|
|
||||||
^- ?
|
|
||||||
::
|
|
||||||
?: (lth message-num.a message-num.b)
|
|
||||||
%.y
|
|
||||||
?: (gth message-num.a message-num.b)
|
|
||||||
%.n
|
|
||||||
(lte fragment-num.a fragment-num.b)
|
|
||||||
:: +split-message: split message into kilobyte-sized fragments
|
:: +split-message: split message into kilobyte-sized fragments
|
||||||
::
|
::
|
||||||
:: We don't literally split it here since that would allocate many
|
:: We don't literally split it here since that would allocate many
|
||||||
|
Loading…
Reference in New Issue
Block a user