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

Option to disable the HELP request



    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.6.2, 5.7.0
    • Network: FTP
    • None
    • Windows 7, although I'm positive Linux and other Windows versions are effected.

      Using Wireshark to examine the network requests.



      It would be very useful to have a parameter to disable the HELP request that is being sent before it downloads each file. (Using the QNetworkAccessManager)

      I know why it uses the HELP request:

      1. It sends the HELP request to the FTP server and returns all available commands.

      2. If the returned commands are SIZE it will send a SIZE request on the file to be downloaded.

      3. If the returned commands are MDTM it will send a MDTM request on the file to be downloaded.

      4. After it sends those 2 commands to the FTP server it will start to download the file.

      I believe this effects all versions of Qt 5.x

      This does NOT effect Qt 4.x (Yes I know I can still use QFTP, unfortunately that's not an option for me.)

      I'm not saying that sending the HELP request is not important but when you know your own configuration of the FTP server it can be useful to send the least amount of commands to your server. (If you know you're going to get high load)

      I've looked through the source code below and I believe if I make the following adjustments (lines that are commented out) I can stop sending the HELP request without effecting anything else. I've uploaded a screenshot of the adjustments.


      I have also included a screenshot of the wireshark trace showing the HELP request being sent. (SIZE and MDTM are included in the response, you can't see it because wireshark hides it, not sure why, but it is there)

      I'm currently building Qt with the source code changes I've made, I will report back in 6 hours when It has finished to see if I have disabled the HELP request.

      Thank you for your time,

      EDIT: I've managed to change the source code to stop sending the HELP request. Please look at the image, "changes_1.png" for the code I have changed.


        1. changes_1.png
          36 kB
        2. changes made.png
          changes made.png
          36 kB
        3. FTP - Wireshark.png
          FTP - Wireshark.png
          19 kB

        Issue Links

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



              cnn Qt Core & Network
              robo Bob
              0 Vote for this issue
              1 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes