Increase SMTP session timeout to 1 minute
ClosedPublic

Authored by thiago on Apr 8 2018, 10:13 PM.

Details

Summary

10 seconds is not enough to connect, establish a TLS session (STARTTLS)
and perform the HELO handshake on high-latency networks, like airplane
WiFi. Sending emails works just fine for non-encrypted connections, but
fails with "connection lost" on encrypted ones, even though tcpdump
shows there is traffic going on. We managed to trace this to this
10-second timeout.

Diff Detail

Repository
R733 KSmtp
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
thiago created this revision.Apr 8 2018, 10:13 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 8 2018, 10:13 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
thiago requested review of this revision.Apr 8 2018, 10:13 PM
dfaure accepted this revision.Apr 9 2018, 8:05 AM

Very cool, this might be the issue I've been seeing recently too.

(has this timeout been shortened during some recent rewrite?)

This revision is now accepted and ready to land.Apr 9 2018, 8:05 AM
dvratil added a comment.EditedApr 9 2018, 9:24 AM

(has this timeout been shortened during some recent rewrite?)

KSmtp is new since 17.12, previously the timeout was in the SMTP KIO Slave and was probably longer (didn't check).

This revision was automatically updated to reflect the committed changes.