Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1516

FileTransfer.abort() has a significant delay before aborting

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • cordova-android
    • None

    Description

      For this to work, we need to abort the connection right away instead of waiting for the pending read() / write() to finish.

      Relevant article here:
      http://blog.codepainters.com/2012/02/17/why-java-nio-is-a-better-idea-for-android/

      Looks like we should use java.nio for this to be possible (bug-free) on Android.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            agrieve Andrew Grieve
            agrieve Andrew Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment