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

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jul 12 04:12:59 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:  Onionoo  |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+---------------------

Comment (by leeroy):

 I took a look at changing Onionoo to use metrics-lib. There are a couple
 gotchas. DescriptorSource uses some data from DescriptorCollector when
 writing in getStatsString. As a first attempt I made the
 DescriptorDownloader inherit from DescriptorCollector. This required the
 access changes described in metric-lib's DescriptorCollectorImpl. Here are
 the changes.

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


More information about the tor-bugs mailing list