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

uploadProgress signal when using HTTPs and a Proxy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.0
    • None
    • Windows 7 x64

       

      Qt 5.9 / PyQt5

    Description

      This bug occurs under the following conditions: 

      Using QNetworkAccessManager

      Using QNetworkProxy (HttpProxy) (I have not tested SOCKS)

      A POST request to a https:// URL with a QHttpMultiPart and setBodyDevice on a QFile

       

      When you connect the QNetworkReply uploadProgress signal to a slot, the slot will get called a total of 3 times. For example if the file we are uploading is 10MB, on my system the values of the slot in the three calls would be:

      16384 / 10000000

      10000000 / 10000000

      0 / 0

      Where those are bytesSent / bytesTotal respectively

       

      Again this only occurs on the condition that you are using a Proxy AND connecting through HTTPs

       

      Proxy + HTTP: Normal working uploadProgress signals

      No Proxy + HTTP: Normal working uploadProgress signals

      No Proxy + HTTPs: Normal working uploadProgress signals

      Proxy + HTTPs: The bug occurs

       

      When viewing my task manager, I notice the file is completely read into memory immediately as I see a 10MB spike in memory when the request starts.  The file transfer does continue on normally until completed.

       

       

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            wallboy Adam W
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes