urbit/pkg/arvo/tests/sys
fang 1d4ee5a7b5
eyre: kick busy subscriptions if client not acking
In order to curb event queue growth when a client for whatever reason
isn't acking the events we send out, we implement a mechanism for
detecting such "clogging", and proactively kick subscriptions which are
adding too many events to the queue.

If the client hasn't sent an ack for ~s30, any subscription that accrues
more than 50 unacked %facts gets closed to prevent further buildup.

Upon reconnecting, the client will see %kick for the relevant
subscriptions and can open a new subscription as appropriate.

Includes a simple test for this behavior, and updates /app/dbug to be
able to display the newly tracked statistics.
2020-10-19 15:56:05 +02:00
..
hoon hoon: +apt:by check for duplicate keys 2020-03-13 05:19:10 +01:00
vane eyre: kick busy subscriptions if client not acking 2020-10-19 15:56:05 +02:00
zuse zuse: adds basic tests for |base16 2020-10-06 10:56:23 -07:00