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

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

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1
    • Fix Version/s: None
    • Component/s: Network: HTTP
    • Labels:
      None
    • Environment:
      Linux 4.8.13 x86_64

      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
        2. TestNetworkReply.tgz
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              cnn Qt Core & Network
              Reporter:
              daniel_g Daniel
            • Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes