Skip to content

Add support for timeout variable in client settings function get_target_versions #128

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SUMMIT-JT
Copy link

Problem

When instantiating either the FlashArray or the FlashBlade Client, it can take a while to determine if the host is unreachable. The timeout parameter is not being passed to get_target_versions when passed to the Client.

Solution

[X] Pass the timeout variable when Client is first getting the target versions
[X] Create a variable MAX_TIMEOUT to prevent excessively long timeouts.
[X] Create a variable DEFAULT_TIMEOUT in the event None is passed
[X] Set the timeout to between 1 and MAX_TIMEOUT in the GET request

Add MAX_TIMEOUT int variable to the get request of get_target_versions
timeout variable is used in function get_array_versions, which is passed along to get_target_versions
…eout parameter

Include the integer MAX_TIMEOUT with value of 120 seconds; calculate the timeout integer value between 1 and MAX_TIMEOUT
timeout variable is used in function get_array_versions, which is passed along to get_target_versions
DEFAULT_TIMEOUT is set to 5 seconds
@SUMMIT-JT SUMMIT-JT requested a review from a team as a code owner February 10, 2025 18:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant