foxcpp / foxcpp/maddy

Enforce reasonable timeouts for all routines

Offen
#370 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
6.1k
Forks
327
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

As part of the goal to improve maddy robustness, context.Context should be used
consistently in all interfaces and reasonable timeouts for operations should be enforced
using these.

- [ ] SMTP check methods
- [ ] SMTP modifier methods
- [ ] IMAP commands (server)
- [ ] SMTP commands (server)
- [ ] Delivery target operations

With that considered, maddy should have as much operations as possible implemented
in a rollback-able way so composite operations could be cancelled due to timeout in one of
sub-operations.

Notable considerations:
- [ ] Delivery.AddRcpt should be revertable. At least last call should be.

With current implementation (non-revertable AddRcpt), it is possible that if multiple delivery targets are used
for one recipient, duplicate messages may be delivered in case of partial failures.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.