Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32911

Problem with QNetworkAccessManager (in QHttpNetworkConnectionPrivate)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 4.8.0, 4.8.2, 4.8.5, 5.0.2, 5.1.0
    • Fix Version/s: None
    • Component/s: Network
    • Labels:
      None
    • Environment:
      It's easy to reproduce in WebKit

      Description

      The main idea:
      suppose we make two request into the
      QNetworkReplay* QNetworkAccessManager::get()
      with the same host name.
      This method return QNetworkReplay* object where we can “subscribe” to signals for tracking the replay status. For example it can be “error()” signal.

      We make the two get() request with the wrong host address ….
      AND! If we make one request with the same host (it’s important!) and then make second request before the host from first request will be processed, we are never receive the notification (about error) from the second request, because the host look up for the second request are not performed (the variable QHttpNetworkConnectionPrivate::networkLayerState in InProgress state) and host look up also async operation.

      I record the video for explain this problem.

      If it need I can submit my patch for fix this bug.

      p.s.
      Link to my post on qt-project.org forum: http://qt-project.org/forums/viewthread/31107/

        Attachments

        1. qnam.zip
          2 kB
        2. result.mp4
          9.19 MB

          Issue Links

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

            Activity

              People

              Assignee:
              shkearns Shane Kearns
              Reporter:
              nen777w Ruslan Teliuk
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes