bug11553 702 B

123456789101112131415
  1. o Minor features:
  2. - When we run out of usable circuit IDs on a channel, log only one
  3. warning for the whole channel, and include a description of
  4. how many circuits there were on the channel. Fix for part of ticket
  5. #11553.
  6. o Major features (performance):
  7. - Avoid wasting cycles looking for usable circuit IDs. Previously,
  8. when allocating a new circuit ID, we would in the worst case do a
  9. linear scan over the entire possible range of circuit IDs before
  10. deciding that we had exhausted our possibilities. Now, we
  11. try 64 circuit IDs at random before deciding that we probably
  12. won't succeed. Fix for a possible root cause of ticket
  13. #11553.