[
https://issues.apache.org/jira/browse/FELIX-2728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall resolved FELIX-2728.
------------------------------------
Resolution: Fixed
Assignee: Richard S. Hall
I assume you meant disconnect() instead of close(), since there is no close()
method. I've committed a patch to trunk. Please closet this issue if satisfied.
Thanks.
> JarRevision does not close URLConnections which are instances of
> HttpURLConnection
> ----------------------------------------------------------------------------------
>
> Key: FELIX-2728
> URL: https://issues.apache.org/jira/browse/FELIX-2728
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-3.0.6
> Environment: Affects Felix running on Android
> Reporter: Bruce Jackson
> Assignee: Richard S. Hall
> Fix For: framework-3.2.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Android (unlike the regular JDK) does not clean up and close
> HttpURLConnection objects properly which can cause all manner of problems.
> The initialize() method in JarRevision creates a URLConnection but never
> closes it because close() is only present in HttpURLConnection. We need a
> modified class which checks for the URLConnection being of type
> HttpURLConnection, and will correctly close() it at the end of the method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.