1. 19 Jun, 2021 6 commits
  2. 18 Jun, 2021 2 commits
  3. 17 Jun, 2021 16 commits
  4. 16 Jun, 2021 10 commits
  5. 15 Jun, 2021 1 commit
  6. 14 Jun, 2021 5 commits
    • Nick Mathewson's avatar
      Comment out build_path for now. · 7a8b2344
      Nick Mathewson authored
      It just duplicates TorPath::build_circuit, which is all you actually
    • Nick Mathewson's avatar
      Use FuturesUnordered, not SelectAll<Once<...>> · 561ca572
      Nick Mathewson authored
      Closes #124
    • Nick Mathewson's avatar
      Enormous tor-circmgr rewrite. · 83b1150c
      Nick Mathewson authored
      As with the tor-chanmgr code, the circuit manager is now implemented
      using an AbstractCircMgr type that uses traits to abstract the
      particular behavior of other types that it uses.  (Specifically:
      circuits, building circuits, and telling whether one circuit usage
      is compatible with another.)  Abstracting out the dependencies in
      this ways makes it possible to test the circuit manager without
      having to actually build real circuits.
      This commit also introduces new behavior for handling pending
      circuit requests.  Upon getting a new request, first we check to see
      if there's an existing circuit we can use.  If there isn't, we look
      for pending circuits and wait for them.  If there aren't any pending
      circuits we can use, we launch one or more, and wait for them.
      So far, that's the same as the old behavior.  But here's a change:
      if, while we are waiting for some pending circuits, a different
      circuit is completed, and it's one we could use, then the task that
      was building _that_ circuit will tell us: "please look at this
      circuit".  This gives us better changes of getting a usable circuit
      Minor changes:
      * The Error type in CircMgr no longer uses anyhow; several errors
        have been simplified.
      * We've gotten more formal about the relationship between circuit
        usage and target usage.
    • Nick Mathewson's avatar
    • Nick Mathewson's avatar
      Make a few error types implement Clone · 8e2246b0
      Nick Mathewson authored
      To make this work we have to wrap std::io::Error in an Arc.  The
      benefit of having these errors implement Clone is that we can
      provide the same Error in response to multiple requests when they
      are all waiting on the same operation.