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

Problem with QNetworkAccessManager (in QHttpNetworkConnectionPrivate)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0, 4.8.2, 4.8.5, 5.0.2, 5.1.0
    • Network
    • None
    • It's easy to reproduce in WebKit

      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/

        1. qnam.zip
          2 kB
        2. result.mp4
          9.19 MB
        For Gerrit Dashboard: QTBUG-32911
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes