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

Not all QNetworkAccessManager::get() calls trigger an error when they should

XMLWordPrintable

    • 9c2ecf89eb773b4929d39a0a4929ce2b647aaaef

      When a get() call fails due to the connection being refused then if there are other get() calls pending with the same url the error is not received by all of them. This is because it only emits the 2nd error out of the two while doing the first check, it ignores the other failures that happen at the same time as it just closes them off.

      Attached is an example that reproduces the problem, note that when the fourth one fails it triggers the slot for the 2nd one as that one is the oldest one pending and it assumes that is the one that failed.

        1. HTTPTest.pro
          0.5 kB
        2. HTTPTest.zip
          11 kB
        3. qtbug36890_diag4.patch
          18 kB
        4. qtbug36890_diag5.patch
          23 kB
        5. qtbug36890_linux5.log
          13 kB
        6. qtbug36890_simple_diag.patch
          3 kB
        7. qtbug36890_windows4.log
          51 kB
        8. qtbug36890_windows5.log
          16 kB
        9. qtbug36890.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            peter-har Peter Hartmann
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes