]> git.scottworley.com Git - tattlekey/commit
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)
commit0527f2292fd8cb1585d63cee916f918cc0a65098
tree792a2fc8dff6957d1ab40a81928e561bd5738bb7
parent6e43b84fc4f233c4f72e1b82920cacd925411fa9
client: Hold presses in queues, one queue per send_count

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.
client/press.c
client/press.h