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

QNetworkReply::finished or QNetworkReply::error not called for second request to unreachable host

    XMLWordPrintable

Details

    • 5234c6c6a8b8ee7cc33dde41c37dd3866c99405b (qt/qtbase/5.14)

    Description

      I have a program that makes a sequence of GET-requests to the server. In case of the server is unreachable the first QNetworkReply finished immediately, for other replies QNetworkReply::finished or QNetworkReply::error not called.

      Source code of simple program, that reproduced this error, are attached.

      Program output for normal connection:

      r1 started
      r1 finished
      r2 started
      r2 finished
      quit app
      

      Program output after `ip route add blackhole $SERVER_IP` was executed:

      r1 started
      r1 error "Network unreachable"
      r1 finished
      r2 started
      

      May be the error is related with QTBUG-57390.

      Attachments

        1. main.cpp
          1 kB
          Daniel
        2. TestNetworkReply.tgz
          5 kB
          Nikolay Lubyagoc
        For Gerrit Dashboard: QTBUG-57799
        # Subject Branch Project Status CR V

        Activity

          People

            cnn Qt Core & Network
            daniel_g Daniel
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes