Reduce worker concurrency from 4 to 2

Reduce idle read timeout from 120s to 60s

Add batching for IMAP metadata fetches
This commit is contained in:
2026-07-05 11:40:04 +07:00
parent b9cc7749c8
commit 2623bc8815
6 changed files with 125 additions and 36 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
// live transfer never trips it — only a genuinely dead/mute socket does. This
// is what stops an account from wedging in "running" forever when a server
// accepts a command (e.g. a large FETCH) and then goes silent.
var idleReadTimeout = 120 * time.Second
var idleReadTimeout = 60 * time.Second
// idleConn wraps a net.Conn and arms a fresh read deadline before every Read.
// It lives beneath any TLS layer (the raw TCP conn), so the deadline governs