Files
tor/changes
Nick Mathewson 0d75344b0e Switch to random allocation on circuitIDs.
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.
2014-04-18 12:58:58 -04:00
..
2013-10-09 09:43:54 -04:00
2014-02-11 18:57:38 -05:00
2013-03-26 20:29:41 -07:00
2013-03-26 22:18:32 -04:00
2013-03-29 12:17:05 -04:00
2013-02-08 16:46:50 -05:00
2013-03-11 12:34:14 -04:00
2013-02-19 15:02:08 -05:00
2013-03-19 17:00:40 -04:00
2013-04-03 09:32:21 -04:00
2013-04-24 22:03:02 -04:00
2013-02-27 19:39:57 -05:00
2013-03-28 09:33:24 -04:00
2013-06-12 21:11:49 -04:00
2013-07-03 12:01:37 -04:00
2013-08-21 11:29:19 -04:00
2014-02-07 10:38:00 -05:00
2013-10-02 22:20:18 -04:00
2013-10-08 12:06:06 -04:00
2013-11-11 10:49:44 -05:00
2013-12-22 17:19:22 -05:00
2013-12-23 19:00:46 -05:00
2014-02-06 16:09:12 -05:00
2014-02-14 23:51:14 -05:00
2014-02-17 23:06:18 +00:00
2013-03-10 23:38:18 -04:00
2013-10-08 16:06:36 -04:00