summaryrefslogtreecommitdiffstats
path: root/tests/manual/network_remote_stresstest
diff options
context:
space:
mode:
authorSebastian Lösch <Sebastian.Loesch@governikus.de>2016-08-10 16:51:34 +0200
committerAndré Klitzing <aklitzing@gmail.com>2017-01-16 11:04:46 +0000
commit14bff46df4870a36ae0a110d7c72bdb42b30e22a (patch)
tree94e5cb76da93348b4a1b06dd5f356d13c4f21e24 /tests/manual/network_remote_stresstest
parentabb47fc6803a3246b67ca6c8357f34ebd0b3e9cc (diff)
Introduce QNetworkAccessManager::clearConnectionCache()
Sometimes it is desirable to use a new connection but keep already entered user credentials for usability reasons. This is now possible by clearing the connection cache (but keeping the authentication cache). Change-Id: I2f5f64836ce19f81c8525701783a3da823dd468e Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/manual/network_remote_stresstest')
-rw-r--r--tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
index 05ede9da99..99e3d148df 100644
--- a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
+++ b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
@@ -147,7 +147,8 @@ void tst_NetworkRemoteStressTest::init()
void tst_NetworkRemoteStressTest::clearManager()
{
#ifdef QT_BUILD_INTERNAL
- QNetworkAccessManagerPrivate::clearCache(&manager);
+ QNetworkAccessManagerPrivate::clearAuthenticationCache(&manager);
+ QNetworkAccessManagerPrivate::clearConnectionCache(&manager);
manager.setProxy(QNetworkProxy());
manager.setCache(0);
#endif