From: Scott Worley Date: Tue, 10 Oct 2023 07:50:42 +0000 (-0700) Subject: client: Hold presses in queues, one queue per send_count X-Git-Tag: v0.1.0~30 X-Git-Url: http://git.scottworley.com/tattlekey/commitdiff_plain/0527f2292fd8cb1585d63cee916f918cc0a65098?hp=0527f2292fd8cb1585d63cee916f918cc0a65098 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. ---