-
- Downloads
Overhaul build_circuit_impl so we can timeout ...
on our own terms. There are apparently cases when Tor won't stop trying to build a circuit at CircuitBuildTimeout. One such case is when it is having trouble connecting to the first hop relay. It seems to wait on TCP to say whether or not the connection is made, and TCP doesn't come back until after 2 minutes on my machine. That's just a theory. It could be Tor internally wants to wait 2 minutes before giving up, but my money is on TCP. Anyway. Make the logic in build_circuit_impl 10x harder to understand by doing some "async" waiting ourselves instead of letting stem handle it. The logic is inspired by the stem code for extending circuits[0]. [0]: https://stem.torproject.org/api/control.html#stem.control.Controller.extend_circuit
Please register or sign in to comment