1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Make the max queue size and give up time configurable

Today, the maximum number of items in the queue, as well as how long we
keep attempting to send each item, is hard-coded and not changed by end
users.

While they are totally adequate for chasquid's main use cases, it can
still be useful for some users to change them.

So this patch adds two new configuration options for those settings.
They're marked experimental for now, so we can adjust them if needed
after they get more exposure.

Thanks to Lewis Ross-Jones <lewis_r_j@hotmail.com> for suggesting this
improvement, and help with testing it.
This commit is contained in:
Alberto Bertogli
2025-05-02 12:06:49 +01:00
parent 9999a69086
commit 24c2c4f5fd
12 changed files with 223 additions and 121 deletions

View File

@@ -142,6 +142,7 @@ func main() {
STSCache: stsCache,
}
s.InitQueue(conf.DataDir+"/queue", localC, remoteC)
s.SetQueueLimits(conf.MaxQueueItems, conf.GiveUpSendAfterDuration())
// Load the addresses and listeners.
systemdLs, err := systemd.Listeners()