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 D58489918 for ; Fri, 6 Apr 2012 17:52:13 +0000 (UTC) Received: (qmail 64349 invoked by uid 500); 6 Apr 2012 17:52:13 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 64325 invoked by uid 500); 6 Apr 2012 17:52:13 -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 64313 invoked by uid 99); 6 Apr 2012 17:52:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 17:52:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 17:52:05 +0000 Received: by qcso7 with SMTP id o7so1477344qcs.6 for ; Fri, 06 Apr 2012 10:51:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=q3hry/AGCZUsvYc1xHKEyfjC6xNEz6QdP2YICqETxPs=; b=L6lTHhcs5j0olZyzAOJ+ZyvlGD5Qjl7zC6uTo4LhVIO0YiAgngCPnpFnnVnRzYjU8C qezR/BLP7/lJkW9mUprKpLiaPisGQkFmcHtNV+/uf2OvxbzVBO/1grwRsjmZDQiLMzrk ZUN23zzYNApb1xWxhJ3flCyCSLbVE+3xRpsEDZyhO+uL2yoJRpkBk1ICjtKK+R841kjm 0p0JFyO7bLFVO4lK9IENHl04X82N8xBbTIo5byxT3OCA8dTfKxHMfJ7Z8k/TmvASRD/B 4jyUzi2qxWPFrF+tPE5w7m7dZq/1sSQi2XfZYK1KAG1lcsej+iyNYvvCRsVC/inSdJ5V jCNQ== Received: by 10.229.136.212 with SMTP id s20mr2943058qct.104.1333734705039; Fri, 06 Apr 2012 10:51:45 -0700 (PDT) Received: from login.fallenearth.com (cpe-071-065-253-054.nc.res.rr.com. [71.65.253.54]) by mx.google.com with ESMTPS id hm8sm10850225qab.0.2012.04.06.10.51.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Apr 2012 10:51:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Pull request for ticket CB-442 From: Marcus Wu In-Reply-To: <89E97633190845B895DF75FADC387F8E@gmail.com> Date: Fri, 6 Apr 2012 13:51:42 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <89E97633190845B895DF75FADC387F8E@gmail.com> To: callback-dev@incubator.apache.org X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQklX1DABTJapqrLWGt5O+RvIHTqm4h3u5hU9XomSxcl/JGzuRKmEaAYsDVSuRUWPfOPOVYE X-Virus-Checked: Checked by ClamAV on apache.org Yes, I did. Thanks, Marcus On Apr 6, 2012, at 1:33 PM, Shazron Abdullah wrote: > Thanks Marcus, I'll test it today. Did you send in your Apache iCLA?=20= >=20 >=20 > On Friday, 6 April, 2012 at 7:40 AM, Marcus Wu wrote: >=20 >> I've submitted a pull request for ticket CB-442 to prevent the = FileTransfer download command from blocking javascript on iOS. For = convenience I have pasted my pull request comments below: >>=20 >>> I have converted the download command from using the blocking NSData = dataWithContentsOfURL: call to use a NSURLConnection so that performance = is improved. >>>=20 >>> I added on to the existing delegate rather than creating a second = one for the download. Additionally, I am checking the HTTP status code = on the response so we don't end up saving an error page and returning = success. >>=20 >> The changes are rather significant for the download command so please = let me know if I need to improve it in any way. >>=20 >> Thanks, >> Marcus >>=20 >>=20 >=20 >=20