Skip to content
Snippets Groups Projects
  1. Apr 23, 2014
    • Nick Mathewson's avatar
      Improvements to #11553 fix based on review · a770b745
      Nick Mathewson authored
      Use a per-channel ratelim_t to control the rate at which we report
      failures for each channel.
      
      Explain why I picked N=32.
      
      Never return a zero circID.
      
      Thanks to Andrea and to cypherpunks.
      a770b745
  2. Apr 18, 2014
    • Nick Mathewson's avatar
    • Nick Mathewson's avatar
      Switch to random allocation on circuitIDs. · 0d75344b
      Nick Mathewson authored
      Fixes a possible root cause of 11553 by only making 64 attempts at
      most to pick a circuitID.  Previously, we would test every possible
      circuit ID until we found one or ran out.
      
      This algorithm succeeds probabilistically. As the comment says:
      
        This potentially causes us to give up early if our circuit ID
        space is nearly full.  If we have N circuit IDs in use, then we
        will reject a new circuit with probability (N / max_range) ^
        MAX_CIRCID_ATTEMPTS.  This means that in practice, a few percent
        of our circuit ID capacity will go unused.
      
        The alternative here, though, is to do a linear search over the
        whole circuit ID space every time we extend a circuit, which is
        not so great either.
      
      This makes new vs old clients distinguishable, so we should try to
      batch it with other patches that do that, like 11438.
      0d75344b
    • Nick Mathewson's avatar
      Supply better and less frequent warnings on circID exhaustion · bb9b4c37
      Nick Mathewson authored
      Fixes the surface behavior of #11553
      bb9b4c37
  3. Apr 15, 2014
  4. Apr 14, 2014
  5. Apr 09, 2014
  6. Apr 08, 2014
  7. Apr 02, 2014
  8. Mar 27, 2014
  9. Mar 20, 2014
  10. Mar 11, 2014
  11. Mar 06, 2014
  12. Feb 25, 2014
  13. Feb 24, 2014
  14. Feb 18, 2014
  15. Feb 17, 2014
  16. Feb 15, 2014
  17. Feb 13, 2014
  18. Feb 12, 2014
  19. Feb 11, 2014
  20. Feb 10, 2014
Loading