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

Need the ability to specify requests timeout value #2

Open
bonkeydcow opened this issue Jul 22, 2021 · 1 comment
Open

Need the ability to specify requests timeout value #2

bonkeydcow opened this issue Jul 22, 2021 · 1 comment

Comments

@bonkeydcow
Copy link

I searched through the code and found no place to override the default requests timeout of 60 seconds. I was able to get the code working only if I changed the default timeout in requests.py (which is not a lasting solution as requests.py updates will remove my changes)

Maybe something like:

client = CohesityClient(cluster_vip=args.ip,
                        username=args.user,
                        password=args.password,
                        domain=args.domain,
                        timeout=420)
@pyashish
Copy link
Contributor

Ack , Totally agree, In v2 SDK we have complete customizations for client in terms of :

  1. user-agent
  2. timeout
  3. log level
  4. retry

For now yes, changing the default in v1 is the only way. I believe you have figured that out , let me know if you want any pointer to fix that.

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

No branches or pull requests

2 participants