On 09/09/2024 18:47 EEST Kevin Kelker via dovecot <dovecot@dovecot.org> wrote:
Hi,
is there any chance to open the doveadm http api to handle more than one client at a time if the requests are read-only commands that have no risk of breaking something when they run simultaneously? We have a scenario of using it only for getQuota to visualize a live-status of the mailbox usage but every once in a while, there are more than one parallel requests for that that are then getting tcp connection resets. As far as I've seen it in https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/PYMMJD... spawning another doveadm http api service with another port wouldn't do the trick.
If that's not possible, wouldn't be a failure code as a response a more clean approach than just refusing the connection at all? Right now, it's getting logged on the dovecot backend as "doveadm server can handle only a single client" but the requesting client gets a connection reset instead of a json-type response with a failure code.
Best
Kevin
You can have it handle more clients by launching multiple processes. Having same process handle multiple clients will just not work.
Aki