You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timeout is not respected. Instead the default timeout for the 'request' library is used, which is forever.
Solution
Replace the following line: response = connect.get(base_uri)
By: response = connect.get(base_uri, timeout=self.args["timeout"])
Note: This will only fix the issue for the tmos version call, but since this is the first call the sqk always makes, it fixes the problem is most of the cases. If a connection opens ones, it will probably open a few seconds later.
More information
The timeout is supposed to be set here: self.session.timeout = timeout
But that doesn't work anymore.
The text was updated successfully, but these errors were encountered:
Timeout not working
Reproduce
ManagementRoot(host, user, pwd, timeout=1)
Problem
Timeout is not respected. Instead the default timeout for the 'request' library is used, which is forever.
Solution
Replace the following line:
response = connect.get(base_uri)
By:
response = connect.get(base_uri, timeout=self.args["timeout"])
Note: This will only fix the issue for the tmos version call, but since this is the first call the sqk always makes, it fixes the problem is most of the cases. If a connection opens ones, it will probably open a few seconds later.
More information
The timeout is supposed to be set here:
self.session.timeout = timeout
But that doesn't work anymore.
The text was updated successfully, but these errors were encountered: