-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom socket connect timeout in Session() #210
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ def init_settings(settings_path, interactive=False): | |
validators = [ | ||
Validator("HOST_USERNAME", default="root"), | ||
Validator("HOST_PASSWORD", default="toor"), | ||
Validator("HOST_CONNECTION_TIMEOUT", default=None), | ||
Validator("HOST_CONNECTION_TIMEOUT", default=60), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you want to keep it? or should I remove it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's try to keep this version, but we'll need to pay attention to automation after this release is live. |
||
Validator("HOST_SSH_PORT", default=22), | ||
Validator("HOST_SSH_KEY_FILENAME", default=None), | ||
Validator("LOGGING", is_type_of=dict), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependent on
settings.HOST_CONNECTION_TIMEOUT
. If not , it'll be none. That means no retry.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If None, simple_retry should still get your default of
60
so I think we're good here!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right.okay yes.