smtp: do not try to use stale connections

Previously first try used an old connection and. If using stale
connection, an immediate retry was performed using a new connection.

Now if connection is stale, it is closed immediately without trying to
use it.

This should reduce the delay in cases when old connection is unusable.
This commit is contained in:
link2xt
2022-04-02 13:26:02 +00:00
parent 332892b468
commit a8ab7c9c04
3 changed files with 70 additions and 69 deletions

View File

@@ -15,6 +15,7 @@
the last copy #3138
- speed up loading of chat messages #3171
- clear more columns when message expires due to `delete_device_after` setting #3181
- do not try to use stale SMTP connections #3180
### Changes
- add more SMTP logging #3093