Re: [patch] proposed patch for managing timeouts on doveadm iteration with -A
John Fawcett via dovecot <[email protected]> Sun, 26 Jul 2026 22:55:31 +0200
| Newsgroups | gmane.mail.imap.dovecot |
|---|---|
| Message-ID | <[email protected]> |
On 26/07/2026 20:14, John Stoffel via dovecot wrote: >>>>>> "John" == John Fawcett via dovecot <[email protected]> writes: >> having further investigated the timeouts mentioned in the previous >> thread, I am submitting this patch as a potential solution. > I like this, it makes sense that the timeout is per-lookup, not > overall length. Now I also admit that for 20,000 (or more!) look ups, > maybe you do want it to time out after a while... or give some > feedback on how far it's gotten into the lookup. With this fix the -A operations won't timeout so long as data is coming back regularly. It should still timeout if the server side hangs. If the original 155 seconds timeout was due to this being applied to all operations including list operations there could be a case to reduce that timeout for all operations. For the quota get operation, and also for other operations like user, there is an output per user, so the progress is visible. Operations like doveadm quote recalc -A don't normally produce output, but adding -v will provide a progress counter per 100 users processed. > >> Basically with -A doveadm parameter, the 155 second timeout is >> applied to the whole end to end transaction. With -F parameter the >> 155 second timeout is applied to each single user >> operation. Changing the logic of -A to follow -F looks a bit >> invasive. So this patch does more or less the same thing, >> i.e. giving each user operation 155 seconds timeout, done in a >> different way. Whenever another username is returned, the timeout is >> reset. > Simple and clean patch. > >> PS I got help from Claude on this. >> best regards >> John > > > >> _______________________________________________ >> dovecot mailing list -- [email protected] >> To unsubscribe send an email to [email protected] > _______________________________________________ > dovecot mailing list -- [email protected] > To unsubscribe send an email to [email protected] _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]