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

QNetworkAccessManager FTP backend does not recover after FileNotFound error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1
    • Network: FTP
    • None
    • Windows

    Description

      If I try to download a non-existent file via FTP and two existing files via FTP and HTTP, the existing FTP file never got downloaded - I never get finished() or error() signals (neither readyRead() or any other signals) for that reply.

      Looks like similar issue described here https://stackoverflow.com/a/23520682

          createRequest(QUrl("ftp://qtproject.mirror.liquidtelecom.com/qtproject/noExist.txt"));
          // hangs indefinitely:
          createRequest(QUrl("ftp://qtproject.mirror.liquidtelecom.com/qtproject/timestamp.txt"));
          createRequest(QUrl("http://qtproject.mirror.liquidtelecom.com/timestamp.txt"));
      

      Console output:

      onFinished QUrl("http://qtproject.mirror.liquidtelecom.com/timestamp.txt")
      onError QUrl("ftp://qtproject.mirror.liquidtelecom.com/qtproject/noExist.txt")
      onFinished QUrl("ftp://qtproject.mirror.liquidtelecom.com/qtproject/noExist.txt")
      

      See the code in the attachment

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            arch Ivan Komissarov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes