Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

SMTP transport selection never moves away from a slow but working relay

Aperta
#8,860 8 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with sorted_transports() in src/smtp.rs and follow how send duration is recorded alongside record_success() and record_failure(). Check the existing transport selection tests and add coverage for a slow successful send; done means a send over the chosen threshold affects which transport is tried first while ordinary successful sends retain the current behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The profile has two relays. The network path from my home to relay A (chat.gluek.info) is degraded: RTT ~550 ms and 50–70% packet loss. Relay B (chatmail.uk) has 20 ms and no loss. Every send through A takes 6–82 s but succeeds. On the same profile, sending through B is instant.

sorted_transports() always tries the last successful transport first. Only a connection failure or an SMTP error (d766641ce) switches to another one. So each slow send calls record_success() for A again, B is never tried, and the user can't choose a relay in the UI.

Possible fix: treat a send that takes longer than some threshold (e.g. 10 s) like a failure (record_failure()), so the next connection tries the other transport first.

Lingua principale
Rust
Stelle
942
Fork
151
Merge medio
2g 3h
PR unite (30g)
67

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chatmail/core

Tutte le issue di chatmail/core

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.