Skip to content

Commit

Permalink
config: pass max_sessions into sshfs instance
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Apr 6, 2023
1 parent 8c78d69 commit 674d7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dvc_ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def _prepare_credentials(self, **config):
# something like paramiko's AutoAddPolicy()
login_info["known_hosts"] = None

if "max_sessions" in config:
login_info["max_sessions"] = config["max_sessions"]
return login_info

@wrap_prop(threading.Lock())
Expand Down

0 comments on commit 674d7c7

Please sign in to comment.