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 22F02D2AF for ; Fri, 20 Jul 2012 22:57:35 +0000 (UTC) Received: (qmail 49020 invoked by uid 500); 20 Jul 2012 22:57:34 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 49002 invoked by uid 500); 20 Jul 2012 22:57:34 -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 48991 invoked by uid 99); 20 Jul 2012 22:57:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 22:57:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id AFB36141826 for ; Fri, 20 Jul 2012 22:57:34 +0000 (UTC) Date: Fri, 20 Jul 2012 22:57:33 +0000 (UTC) From: "Joe Bowser (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <667375953.84614.1342825054721.JavaMail.jiratomcat@issues-vm> In-Reply-To: <217593302.37990.1340265583360.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (CB-945) Leaking resources if network access disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-945?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser updated CB-945: -------------------------- Priority: Minor (was: Major) I'll fix it, but if you disable network access, you disable access to local= host too, which is required for the callback server. This is FAIL :( =20 > Leaking resources if network access disabled > -------------------------------------------- > > Key: CB-945 > URL: https://issues.apache.org/jira/browse/CB-945 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 1.7.0 > Reporter: Kimmo Puputti > Assignee: Joe Bowser > Priority: Minor > Original Estimate: 2h > Remaining Estimate: 2h > > If network access is disabled for the DroidGap.appView (super.appView.get= Settings().setBlockNetworkLoads(true)) then CallbackServer.run() is blocked= at waitSocket.accept() and the CallbackServer=E2=80=99s thread never ends.= New blocked thread is left each time an instance of DroidGap is opened and= closed. An application can crash because of native resource leaks. > This can be fixed by changing the local variable waitSocket in the Callba= ckServer.run() into the member variable. Also following lines have to be ad= ded to the stopServer(): > try { > waitSocket.close(); > } catch (IOException ignore) {} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira