Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7274 Native Symbian implementation of the QNativeSocketEngine / QAbstractSocketEngine
  3. QTBUG-18415

solve deadlock when QNAM is deleted while http delegate thread is still running

    XMLWordPrintable

Details

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shkearns Shane Kearns
            shkearns Shane Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes