forcedotcom/SalesforceMobileSDK-iOS — pull request #104 by khawkins (2012-08-14 00:41:52+00:00)
Title: Oauth refresh timeout

It seems that, once NSMutableURLRequest figures out that you're making an HTTP POST, it doesn't care for your stinkin' timeout value, and pegs the value at a minimum of 240 seconds. The suggested workaround is to set up an NSTimer to manage the asynchronous request...asynchronously. So that's what happens here.

We may have reason to knock the default timeout of 120 seconds down at some point, or manage the error handling and propagation differently down the road. This work is simply the initial effort, to update the code to actually adhere to the user-configured timeout value.