Skip to content

Change default MaxClientCircuitsPending from 32 to 1

I'm pointing at #40350 (closed).

When there is an error all routers are down or won't exit, that is occurring when tor is trying to access area that is for some reason is inaccessible, it's trying to break it anyway with all of it 32 circuits, which just leads to a really large CPU power consumption. I can compare it on win 11 laptop like this.image

image

Here it is optimised to only 1 pending circuit in my configuration, that is still a reasonable amount of load, but nothing compared to this image

And this image

The main problem here is "all routers are down" error, which is obviously has a right to be as a notice, but it's just horribly unoptimised. I use 2 bridges 2 middles 1 exit node configuration. I face it on pretty usual sites on the internet that just turned out to be not really optimised for tor. If you have any other ideas how to fix this I will be glad if you implement them.

Edited by Verity-Freedom
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information