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 7EAD4D0EA for ; Thu, 21 Jun 2012 07:59:48 +0000 (UTC) Received: (qmail 39446 invoked by uid 500); 21 Jun 2012 07:59:48 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 39012 invoked by uid 500); 21 Jun 2012 07:59:44 -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 38745 invoked by uid 99); 21 Jun 2012 07:59:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 07:59:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5724D1416E9 for ; Thu, 21 Jun 2012 07:59:43 +0000 (UTC) Date: Thu, 21 Jun 2012 07:59:43 +0000 (UTC) From: "Kimmo Puputti (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <217593302.37990.1340265583360.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (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 Kimmo Puputti created CB-945: -------------------------------- Summary: 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.8.0 Reporter: Kimmo Puputti Assignee: Joe Bowser If network access is disabled for the DroidGap.appView (super.appView.getSe= ttings().setBlockNetworkLoads(true)) then CallbackServer.run() is blocked a= t waitSocket.accept() and the CallbackServer=E2=80=99s thread never ends. N= ew blocked thread is left each time an instance of DroidGap is opened and c= losed. An application can crash because of native resource leaks. This can be fixed by changing the local variable waitSocket in the Callback= Server.run() into the member variable. Also following lines have to be adde= d 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