Skip to content

Commit

Permalink
Merge pull request #37 from m417z/tor_no_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
realgam3 authored Feb 20, 2024
2 parents 1e2884c + fefcce0 commit 2dfbe22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ options:
-e CONFIG, --tor-config CONFIG
tor extended json configuration (default: {})
-t TIMEOUT, --tor-timeout TIMEOUT
number of seconds before our attempt to start a tor instance timed out (default: 90)
timeout in seconds for starting a tor instance; 0 disables timeout (default: 90)
-r TRIES, --tor-tries TRIES
number tries to start a tor instance before it fails (default: 5)
--on-count ON_COUNT change ip every x requests (resources also counted) (default: 0)
Expand Down
6 changes: 3 additions & 3 deletions pymultitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def run(self):
**self.tor_config
},
tor_cmd=self.tor_cmd,
timeout=self.tor_timeout,
timeout=self.tor_timeout if self.tor_timeout != 0 else None,
init_msg_handler=self.print_bootstrapped_line
)
break
Expand Down Expand Up @@ -281,7 +281,7 @@ def load(loader):
name="tor_timeout",
typespec=int,
default=DEFAULT_INIT_TIMEOUT,
help="number of seconds before our attempt to start a tor instance timed out",
help="timeout in seconds for starting a tor instance; 0 disables timeout",
)
loader.add_option(
name="tor_tries",
Expand Down Expand Up @@ -490,7 +490,7 @@ def main(args=None):
dest="config",
default="{}")
parser.add_argument("-t", "--tor-timeout",
help="number of seconds before our attempt to start a tor instance timed out",
help="timeout in seconds for starting a tor instance; 0 disables timeout",
dest="timeout",
type=int,
default=DEFAULT_INIT_TIMEOUT)
Expand Down

0 comments on commit 2dfbe22

Please sign in to comment.