Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 247559

Re: Detecting vCloudClient timed out session and extending

$
0
0

I am not familiar with the SDK but you can watch for the returned response code (if you have access to it). If it is 401 (Unauthorized) then you can refresh the connection. This will probably require that you wrap each request in a try/catch block (I don't know if the SDK will throw an exception on 401).

Or you can just refresh the connection every 20 minutes - I currently use this approach but I am using the Rest API directly.


Viewing all articles
Browse latest Browse all 247559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>