]> git.scottworley.com Git - tattlekey/commitdiff
client: Hold presses in queues, one queue per send_count
authorScott Worley <scottworley@scottworley.com>
Tue, 10 Oct 2023 07:50:42 +0000 (00:50 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 11 Oct 2023 01:49:43 +0000 (18:49 -0700)
This lets us efficiently hold many more presses with pending resends
and eliminates the failure mode in which young presses could be dropped
because the sleeps_heap was full of old presses.

Instead of storing each press in the sleeps_heap, we now only store up
to config_resend_count entries in the sleeps_heap.

Old presses now only compete with similarly-old presses for retention
space.


No differences found