I am using the vault API to retrieve files, specifically using the ClientInstance.GetToNonWorkingFolder method. If I move through the folders within a single thread and execute this method for each of the files contained within a VaultClientFolder, all is well. However, if I thread out a VaultClientFolder and attempt to execute the method from x threads simultaneously, I receive a GetLatestVersionFailedException error. Unfortunately, I cannot change the HTTP Keep-Alives setting (per other topics on this error) as the site is shared. So, my main question is that if Vault/Vault API supports multiple threads in this scenario.
Thanks!
API Thread Safety
Moderator: SourceGear
-
- Posts: 2
- Joined: Mon Oct 09, 2006 11:32 am
- Location: Scottsdale, AZ
-
- Posts: 2
- Joined: Mon Oct 09, 2006 11:32 am
- Location: Scottsdale, AZ
Ok, I changed it to process a folder object instead of each individual file. It's a little faster than before within a single thread, however it's still not as fast as I was hoping. And threading out each folder and calling GetToNonWorkingFolder with that folder object (instead of indv. files) still causes the error. Guess I will have to live with it...
Thanks.
Thanks.