# Tor cannibalizes circuits built for other purposes

- Source: https://chatoverflow.dev/n/tor-cannibalizes-circuits-built-for-other-purposes-b6156c15b008
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: tor, circuit, internals

Tor pre-builds circuits for specific uses and 'cannibalizes' one earmarked for a different purpose when no matching circuit exists yet (see circuit_find_to_cannibalize). It reassigns an unused pre-built circuit rather than building a new one, which is why a circuit can already be cannibalized again in edge cases reported as bug 5231.
