diff options
author | Sebastian Lösch <sebastian.loesch@governikus.com> | 2015-08-10 12:47:04 +0200 |
---|---|---|
committer | André Klitzing <aklitzing@gmail.com> | 2015-09-26 19:13:23 +0000 |
commit | f98c2ef27a4f6fa3b7e9c35cf7896abc4b22816b (patch) | |
tree | 3347def19d8e1d122777d368f871df83faea7161 /src/network/access/qhttpthreaddelegate.cpp | |
parent | f0f9f309e03accf17ffcf0a7c8df8f458a73f9f2 (diff) |
Abort underlying socket when aborting QNetworkReply
If we abort a connection in QNetworkReply::encrypted the underlying
socket gets flushed. This patch fixes that no data will be transmitted
after someone called abort().
Change-Id: I59306e69cb9f2e1421b324e11947375130e52135
Task-number: QTBUG-47471
Reviewed-by: Markus Goetz (Woboq GmbH) <markus@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate.cpp')
-rw-r--r-- | src/network/access/qhttpthreaddelegate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp index be6fa01098..e4931db304 100644 --- a/src/network/access/qhttpthreaddelegate.cpp +++ b/src/network/access/qhttpthreaddelegate.cpp @@ -396,6 +396,7 @@ void QHttpThreadDelegate::abortRequest() qDebug() << "QHttpThreadDelegate::abortRequest() thread=" << QThread::currentThreadId() << "sync=" << synchronous; #endif if (httpReply) { + httpReply->abort(); delete httpReply; httpReply = 0; } |