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

Aborting a FTP download makes it impossible to issue other requests to the same server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.2.0
    • Network: FTP
    • None
    • 4a6cb89f2944b5d8ee3e50fd3a2085eba9189680

    Description

      After aborting a FTP download (QNetworkReply::abort()), all subsequent requests to the same URL or to other URLs from the same server fail.

      The only way to have them work again is then to call clearAccessCache() on the QNetworkAccessManager object.

      Attached are source files that demonstrate the issue.

      Output:

       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  start 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  1408 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  38016 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  121088 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  284416 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  451968 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  642048 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  649088 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  673024 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  stop 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  Operation canceled 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  698368 / 27361280 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  finished 
      QIODevice::read: device not open
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  start
      

      ... time passes, then ...

       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  Error while downloading ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img: Downloading file failed:
      No transfer timeout (120 seconds): closing control connection 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  0 / 0 
       QUrl( "ftp://ftp.uni-erlangen.de/mirrors/Mageia/distrib/4/x86_64/install/images/all.img" )  finished 
      

      Attachments

        1. QTBUG-40368.tar.gz
          2 kB
        2. main.cpp
          1 kB
        3. download.h
          0.6 kB
        4. download.cpp
          1 kB

        Issue Links

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

          Activity

            People

              jefernan Jesus Fernandez
              stormi Samuel Verschelde
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes