Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
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
Issue Links
- is duplicated by
-
QTBUG-60416 QNetworkAccessManager stalled FTP requests after abort
- Closed