Bug with QNetworkAccessManager.



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


  • Lifetime Qt Champion

    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.




  • Lifetime Qt Champion

    Great ! Thank you


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.