One reconnect failure stops all mailboxes ai:claude-sonnet-5-5 #49
Labels
No labels
nagonag
nagonag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
IUS/xr-invoiced#49
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: minor
Found by a 100 Go Mistakes review (robustness / #62 goroutine lifecycle). Verified by reading the code.
Where:
internal/app/app.go:539-543(RunMailbox),internal/app/app.go:612-660(Run)Problem:
client.Reconnectis attempted once afterReconnectDelaySeconds; on failure (e.g. network still down)RunMailboxreturns an error,Runrecords it, callscancel()and all other healthy mailboxes stop, so the process exits.Fix: Retry the reconnect with backoff until
ctxis done; treat only fatal errors (e.g. auth failure) as terminal for the mailbox, and do not cancel the others.(co)authored by ai:claude-sonnet-5-5