Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bug with QNetworkAccessManager.
Forum Updated to NodeBB v4.3 + New Features

Bug with QNetworkAccessManager.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    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.

    Thanks, wait for your comments.
    "I upload video on drop box: ":https://www.dropbox.com/s/180dp7vrtkc1j6c/result.mp4

    p.s.
    The video has a good quality, that allow read from the screen. I don't know why, but embed drop box player distort it. So... the better if you just download it and look on your favorite desktop player.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since it's a bug, you should bring this to the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)

      Also check the "bug report":http://bugreports.qt-project.org/issues/ system. If nothing as been reported yet, you can create a new report providing all the information from this post.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nen777w
        wrote on last edited by
        #3

        Ok.
        I report it here: https://bugreports.qt-project.org/browse/QTBUG-32911

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Great ! Thank you

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved