matcha
matcha copied to clipboard
BUG: IMAP connection pool exhaustion under load
Describe the bug: No connection pooling or limit on concurrent IMAP connections. Multiple operations can exhaust server connection limits. Server may refuse connections or ban client.
To reproduce:
- Configure multiple accounts (5+)
- Trigger simultaneous sync on all
- Each spawns multiple IMAP connections
- Server hits connection limit
- Errors: "too many connections" or connection refused
Expected behavior:
- Implement connection pool with max limit
- Queue operations when pool full
- Reuse idle connections
- Respect server connection limits
- Graceful degradation on limit hit
Additional context:
- File: fetcher/fetcher.go
- Need connection pool implementation
- Track connections per server
- Handle connection reuse safely
- Severity: High - service disruption
- Complexity: High - connection pooling
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.