incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kimmo Puputti (JIRA)" <>
Subject [jira] [Created] (CB-945) Leaking resources if network access disabled
Date Thu, 21 Jun 2012 07:59:43 GMT
Kimmo Puputti created CB-945:

             Summary: Leaking resources if network access disabled
                 Key: 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.getSettings().setBlockNetworkLoads(true))
then is blocked at waitSocket.accept() and the CallbackServer’s 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 into
the member variable. Also following lines have to be added to the stopServer():

try {
} catch (IOException ignore) {}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message