File increase-smtp-timeout-session.patch of Package ksmtp
From f53cf6e95741266fa948efc8056db7ba37c4df7c Mon Sep 17 00:00:00 2001
From: Laurent Montel <montel@kde.org>
Date: Fri, 13 Apr 2018 08:16:57 +0200
Subject: Increase SMTP session timeout to 1 minute
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.
Reviewers: marten, knauss, dfaure, dvratil, mlaurent
Reviewed By: dfaure
Subscribers: #kde_pim
Tags: #kde_pim
Differential Revision: https://phabricator.kde.org/D12053
(cherry picked from commit 5191948c41856fe62fb0471931fdcff3820b30f6)
---
src/session.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/session.cpp b/src/session.cpp
index 8699b5c..7c1382c 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -42,7 +42,7 @@ SessionPrivate::SessionPrivate(Session *session)
q(session),
m_state(Session::Disconnected),
m_thread(nullptr),
- m_socketTimerInterval(10000),
+ m_socketTimerInterval(60000),
m_startLoop(nullptr),
m_sslVersion(KTcpSocket::UnknownSslVersion),
m_jobRunning(false),
--
cgit v0.11.2