Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 189AC909A for ; Tue, 2 Oct 2012 15:31:08 +0000 (UTC) Received: (qmail 45471 invoked by uid 500); 2 Oct 2012 15:31:07 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 45441 invoked by uid 500); 2 Oct 2012 15:31:07 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 45431 invoked by uid 99); 2 Oct 2012 15:31:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 15:31:07 +0000 Date: Wed, 3 Oct 2012 02:31:07 +1100 (NCT) From: "Andrew Grieve (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <145172588.154614.1349191867845.JavaMail.jiratomcat@arcas> In-Reply-To: <279131611.105991.1348199649437.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (CB-1516) FileTransfer.abort() has a significant delay before aborting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Grieve resolved CB-1516. ------------------------------- Resolution: Fixed commit: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=05bc1865a63a09a2fde92adeb1ffc59884ef4dc3 > FileTransfer.abort() has a significant delay before aborting > ------------------------------------------------------------ > > Key: CB-1516 > URL: https://issues.apache.org/jira/browse/CB-1516 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.2.0 > Reporter: Andrew Grieve > Assignee: Andrew Grieve > Priority: Minor > Fix For: 2.2.0 > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira