[tor-bugs] #16540 [metrics-lib]: Close the the updater's shared HttpUrlConnection socket if an exception occurs.

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jul 11 00:35:27 UTC 2015


#16540: Close the the updater's shared HttpUrlConnection socket if an exception
occurs.
-----------------------------+---------------------
     Reporter:  leeroy       |      Owner:  karsten
         Type:  defect       |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  metrics-lib  |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+---------------------

Comment (by leeroy):

 Sounds like a fine plan. I see just the three spots where blocking can
 occur. Unfortunately HttpURLConnection isn't AutoCloseable so it cannot be
 used in a try-with-resources.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16540#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list