Skip to content
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

[OPENSTACK-2880] add timeout parameter 4 token auth #182

Conversation

Niklaus-xie
Copy link

No description provided.

Copy link
Contributor

@zhaoqin-github zhaoqin-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may modify your commit message a little (eg. "Input timeout parameter for auth token). Just my personal feeling.

@@ -423,7 +423,7 @@ def __init__(self, username, password, **kwargs):
else:
if token_auth is True:
self.session.auth = iControlRESTTokenAuth(
username, password, verify=verify
username, password, verify=verify, timeout=timeout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to input timeout parameter for other two cases in line 420 and 430?

in case that the connection never ends e.g.
when it calls requests.post() in get_new_token.
@Niklaus-xie Niklaus-xie changed the title [OPENSTACK-2880] modify timeout when Token based [OPENSTACK-2880] add timeout parameter 4 token auth Sep 6, 2023
@zhaoqin-github zhaoqin-github merged commit 254ac6c into F5Networks:v1.3.9-dev Sep 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants