[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #22403 [Core Tor/Tor]: Reset downloads more consistently



#22403: Reset downloads more consistently
------------------------------+------------------------------
     Reporter:  teor          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-bootstrap
Actual Points:                |  Parent ID:
       Points:  2             |   Reviewer:
      Sponsor:                |
------------------------------+------------------------------
 Split off #17750.

 When we go to reset downloads, I think we want to call:
 * router_reset_descriptor_download_failures, and
 * router_reset_status_download_failures.

 But:
 * router_reset_descriptor_download_failures doesn't reset:
   * authority_cert_t.dl_status_by_id,
   * cert_list_t.dl_status_map,
   * bridge_info_t.fetch_status,
   * routerstatus_t.dl_status
 * router_reset_status_download_failures only resets fallback directory
 mirrors, and not anything that's just in the consensus.

 We should do two things:
 * reset all the download statuses and down flags we want to reset in one
 place, and
 * call that function at startup (or when a download status is created) as
 well as when we HUP or want to reset failed downloads.

 But when we do this, we should make sure we haven't created slow or fast
 zombies.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22403>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs