Sensible SMTP retry policy on network connection errors/timeouts
Categories
(MailNews Core :: Networking: SMTP, enhancement)
Tracking
(Not tracked)
People
(Reporter: maxe, Unassigned)
References
Details
After a fix for bug 2061626 we have the option to both retry on a hard network failure as well as cancel a stuck connecting after a certain timeout and then retry.
If the default Send Progress Bar is open, a little bit more failure tolerance is to be expected.
This won't be the most complicated code in the world, but needs a policy decision whether and how we want it and how it would be communicated in the Progress Bar.
My proposal:
For hard network errors: Retry every 5s until we fail at 60s.
For stuck at connecting (which can mean TCP or hopefully TLS): Cancel a stuck connection attempt after 20s, retry two more times.
Well, just like MIME SMTP has no module owner but not even a peer. Needinfo to try to settle it beforehand.
Comment 1•3 months ago
|
||
I think perhaps best to use some sort of exponential backoff rather than every 5 seconds to 60 for hard network errors. Your stuck connecting approach sounds great.
The main thing I would want is that the Progress Bar clearly communicates that we are still trying, and what is going on to some degree.
| Reporter | ||
Updated•3 months ago
|
| Reporter | ||
Comment 2•3 months ago
|
||
I think perhaps best to use some sort of exponential backoff rather than every 5 seconds to 60 for hard network errors. Your stuck connecting approach sounds great.
Exponential sounds good, but I wanted to aim for a 60s cutoff which would mean either 40s or 80s.
Comment 3•3 months ago
|
||
I'd like to basically get rid of the Send Progress dialog at some point, so would be good to design on that assumption. It should help with not having to have too short retry period (5s sounds like too short).
It would be much nicer to send in the background, on a short delay. Something like bug 246865. I think the difficulty is mostly handling error situations decently. I guess this is part of that.
Description
•