Skip to content
  • teor (Tim Wilson-Brown)'s avatar
    Prop210: Add schedules for simultaneous client consensus downloads · 35bbf2e4
    teor (Tim Wilson-Brown) authored
    Prop210: Add attempt-based connection schedules
    
    Existing tor schedules increment the schedule position on failure,
    then retry the connection after the scheduled time.
    
    To make multiple simultaneous connections, we need to increment the
    schedule position when making each attempt, then retry a (potentially
    simultaneous) connection after the scheduled time.
    
    (Also change find_dl_schedule_and_len to find_dl_schedule, as it no
    longer takes or returns len.)
    
    Prop210: Add multiple simultaneous consensus downloads for clients
    
    Make connections on TestingClientBootstrapConsensus*DownloadSchedule,
    incrementing the schedule each time the client attempts to connect.
    
    Check if the number of downloads is less than
    TestingClientBootstrapConsensusMaxInProgressTries before trying any
    more connections.
    35bbf2e4