path: root/src
diff options
authorJesus Fernandez <>2017-04-05 18:35:52 +0200
committerJesus Fernandez <>2017-04-07 11:37:13 +0000
commit4a6cb89f2944b5d8ee3e50fd3a2085eba9189680 (patch)
treeda1b70fa4168fd1f58c285d0eb6c2ab2affae601 /src
parent872bff5b24ded4a5dfecad96df907f32830a980a (diff)
Fix reusing FTP connection after abort
The QNetworkAccessCache was keeping the connection alive and it was trying to reuse it for subsequent calls to download files from the same server. After closing the connection, it is not usable anymore and a new one should be created. Task-number: QTBUG-40368 Change-Id: I1a0d08956a94eb36f39d14112cdcab6c1e2add82 Reviewed-by: Edward Welbourne <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkaccessftpbackend.cpp b/src/network/access/qnetworkaccessftpbackend.cpp
index d242bdba82..6d1ee645fe 100644
--- a/src/network/access/qnetworkaccessftpbackend.cpp
+++ b/src/network/access/qnetworkaccessftpbackend.cpp
@@ -114,7 +114,7 @@ QNetworkAccessFtpBackend::~QNetworkAccessFtpBackend()
//if backend destroyed while in use, then abort (this is the code path from QNetworkReply::abort)
if (ftp && state != Disconnecting)
- disconnectFromFtp();
+ disconnectFromFtp(RemoveCachedConnection);
void QNetworkAccessFtpBackend::open()