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

QNetworkRequestManager fails to complete post if read on the given QIODevice returns 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.7.3
    • Network
    • None
    • windows 7 x64

    Description

      When attempting to implement a bandwidth throttling for HTTP Post request using a sequential or non sequential QIODevice that has a modified readData function so that it only reads as much bytes as is allowed to keep the bandwidth quota, the Post operation stalls indefinitely (stops and never completes) if the function (readData) returns 0 (does not read anything).
      According to comments in the QT code calling the function however it should be retried automatically, but apparently it is not.

      In an other case, where a simple HTTP proxy is implemented, the same issue appears when the Incoming data are not fast enough so that readData has once or more return 0 the POST operation fails the same way as above.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            zordon Daniel Woelfle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes