Details
-
Sub-task
-
Resolution: Done
-
P1: Critical
-
None
-
3f7d1dd5f323970f1047ab058159ec48d94012f7
Description
The use of QSharedPointer<QNetworkSession> was under the assumption that QNAM would have a longer lifetime than the http thread(s) it creates.
In the qabstractnetworkcache test case, this isn't true.
It deadlocks when the http thread tries to delete the QNetworkSession - as the delete is called from the wrong thread.
QNAM is a local variable in a test case, so it is destructed immediately on a test failure.