Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 4b28cfd

Browse files
committed
CircuitIdleTimeout has been removed in Tor 0.3.0.7
1 parent dc4b00e commit 4b28cfd

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

bwscanner/attacher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def add_single_port_exit(port):
150150

151151

152152
@defer.inlineCallbacks
153-
def connect_to_tor(launch_tor, circuit_build_timeout, circuit_idle_timeout, control_port=9051):
153+
def connect_to_tor(launch_tor, circuit_build_timeout, control_port=9051):
154154
"""
155155
Launch or connect to a Tor instance
156156
@@ -160,7 +160,6 @@ def connect_to_tor(launch_tor, circuit_build_timeout, circuit_idle_timeout, cont
160160
tor_options = {
161161
'LearnCircuitBuildTimeout': 0, # Disable adaptive circuit timeouts.
162162
'CircuitBuildTimeout': circuit_build_timeout,
163-
'CircuitIdleTimeout': circuit_idle_timeout,
164163
'UseEntryGuards': 0, # Disable UseEntryGuards to avoid PathBias warnings.
165164
'UseMicroDescriptors': 0,
166165
'FetchUselessDescriptors': 1,

bwscanner/scanner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ def __repr__(self):
4242
help='Launch Tor or try to connect to an existing Tor instance.')
4343
@click.option('--circuit-build-timeout', default=20,
4444
help='Option passed when launching Tor.')
45-
@click.option('--circuit-idle-timeout', default=20,
46-
help='Option passed when launching Tor.')
4745
@click.version_option(BWSCAN_VERSION)
4846
@click.pass_context
49-
def cli(ctx, data_dir, loglevel, logfile, launch_tor, circuit_build_timeout, circuit_idle_timeout):
47+
def cli(ctx, data_dir, loglevel, logfile, launch_tor, circuit_build_timeout):
5048
"""
5149
The bwscan tool measures Tor relays and calculates their bandwidth. These
5250
bandwidth measurements can then be aggregate to create the bandwidth
@@ -60,7 +58,7 @@ def cli(ctx, data_dir, loglevel, logfile, launch_tor, circuit_build_timeout, cir
6058
os.makedirs(ctx.obj.measurement_dir)
6159

6260
# Create a connection to a Tor instance
63-
ctx.obj.tor = connect_to_tor(launch_tor, circuit_build_timeout, circuit_idle_timeout)
61+
ctx.obj.tor = connect_to_tor(launch_tor, circuit_build_timeout)
6462

6563
# Set up the logger to only output log lines of level `loglevel` and above.
6664
setup_logging(log_level=loglevel, log_name=logfile)

test/template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def setUp(self):
1515
self.tor_state = yield connect_to_tor(
1616
launch_tor=False,
1717
circuit_build_timeout=30,
18-
circuit_idle_timeout=30,
1918
control_port=int(os.environ.get('CHUTNEY_CONTROL_PORT')))
2019

2120
self.attacher = SOCKSClientStreamAttacher(self.tor_state)

0 commit comments

Comments
 (0)