A bit of a clarification.
Internally, the brainCloud client is automatically retrying for you.
The timeout setting is an array - the defaults are [15, 10, 10]. This means the first timeout is 15 seconds, then 10 seconds later, and 10 seconds after that. Totally 35 seconds.
If after those 3 retries the app was unable to get a valid response, it finally sends a retry to the client.
So, a couple of things:
- 1 - don't change the defaults to make them smaller. That just hits our server harder.
- 2 - Don't blindly retry calling brainCloud if the request times out. That's already been done 3 times! Could be their having mobile networking issues. Instead - pop up a retry dialog to your client.
PS - We are considering extending this timeout a bit - because its possible to have scripts that only timeout after 60 seconds - and they aren't automatically handled without adjusting the client timeouts.
The new values we are considering are 15, 20, 35, 50 - so the full timeout becomes 2 minutes, with excalating retries.
Hope that helps!