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

Problem with QNetworkAccessManager (in QHttpNetworkConnectionPrivate)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    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
          Ruslan Teliuk
        2. result.mp4
          9.19 MB
          Ruslan Teliuk

        Issue Links

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

          Activity

            People

              shkearns Shane Kearns
              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