Skip to content
Snippets Groups Projects
  1. Mar 07, 2022
  2. Mar 04, 2022
  3. Mar 03, 2022
    • Nick Mathewson's avatar
      arti-testing: Initial implementation · 9329c7b8
      Nick Mathewson authored
      This commit adds a new program to try to implement the ideas behind
      experimentation in #329.  In particular, it tries to implement
      basic client "can I bootstrap and connect" functionality testing,
      with a lot of instrumentation, and support for breaking things.
      
      So far, the instrumentation is limited to counting TCP bytes and
      connections, and counting events.  Still, this is enough to measure
      behavior on some of the incorrect-clock tests.
      
      NOTE:
      
      For now, you are _required_ to pass in an explicit configuration, in
      hopes that this will lead you to override your storage directories
      for doing specific experiments.
      9329c7b8
  4. Mar 02, 2022
  5. Mar 01, 2022
  6. Feb 28, 2022
    • Ian Jackson's avatar
      arti-hyper: Provide TLS connector and make space for TLS stream · c397c772
      Ian Jackson authored
      Add tls_conn field to ArtiHttpConnector (and argument to constructor).
      Introduce MaybeHttpsStream and use it in ArtiHttpConnection.
      Have the example program pass the native TLS connector.
      
      Currently the TLS connector and the HTTPS variant are not used, but
      this commit is very noisy and fomrulaic, so I have split out the code
      to use them into a separate commit for easier preparation and review.
      c397c772
  7. Feb 25, 2022
  8. Feb 23, 2022
  9. Feb 18, 2022
  10. Feb 16, 2022
  11. Feb 15, 2022
  12. Feb 14, 2022
    • Nick Mathewson's avatar
      Refactor tor_netdoc::Error · b6d23c36
      Nick Mathewson authored
      This error type doesn't impement HasKind, since the kind will depend
      on context.
      
      However, the existing implementation was pretty messy and inconsistent:
      Some errors had positions, some didn't.
      Some took messages as str, some as String.
      Some had internal errors that were somewhat orthogonal to their actual
      types.
      
      This commit refactors tor_netdoc::Error to use a ParseErrorKind, and
      adds a set of convenience functions to add positions and
      messages to the errors that need them.
      b6d23c36
    • Nick Mathewson's avatar
      Simplify wait_for_bootstrap to use a Mutex. · 8ea95aee
      Nick Mathewson authored
      Since the only purpose of this function is to make sure that no
      bootstrapping task is running, a simple futures::lock::Mutex
      should do the job just fine.
      
      Closes #337.
      8ea95aee
  13. Feb 11, 2022
    • eta's avatar
      Allow creating unbootstrapped `TorClient`s (and `DirMgr`s) · 882e75cd
      eta authored
      This commit changes how the `TorClient` type works, enabling it to be
      constructed synchronously without initiating the bootstrapping process.
      Daemon tasks are still started on construction (although some of them
      won't do anything if the client isn't bootstrapped).
      
      The old bootstrap() methods are now reimplemented in terms of the new
      create_unbootstrapped() and bootstrap_existing() methods.
      
      This required refactoring how the `DirMgr` works to enable the same sort
      of thing there.
      
      closes #293
      882e75cd
    • Nick Mathewson's avatar
      tor-socksproto: Implement HasKind · f6189e17
      Nick Mathewson authored
      (This error isn't yet wrapped in TorError, but it will be eventually
      when we implement socks proxy and PT support.)
      f6189e17
  14. Feb 09, 2022
  15. Feb 05, 2022
  16. Feb 04, 2022
Loading