diff options
author | Shane Kearns <ext-shane.2.kearns@nokia.com> | 2012-04-27 19:31:37 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-05 03:50:25 +0200 |
commit | 1aeaf0e7089c893a927a5ab311a6176aad5874a7 (patch) | |
tree | f4f9244dc1b0fb6e3f7c0b4c4b0c3e771d1d06f7 /tests/manual/qnetworkaccessmanager/qget | |
parent | cd7abae39ff586d98293d86c8295d53511878b58 (diff) |
Use reference count to close down idle network session
QNetworkAccessManager was using the AutoCloseConnection property
of QNetworkSession to close it when idle. However this property is
only implemented for polling engines and not event driven engines.
Instead, release the network session reference.
If another request comes in, it will be resurrected from the shared
session weak reference.
If not, then after 2 minutes when the connection caches are flushed
the ref count will reach zero and cause the QNetworkSession to be
destroyed (which closes it)
Task-number: QTBUG-15812
Change-Id: I2963bdf13fb02e3ac269489ea463669142f3c5f3
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
Diffstat (limited to 'tests/manual/qnetworkaccessmanager/qget')
0 files changed, 0 insertions, 0 deletions