Set the timeout value up to which the application waits until the request reaches the server.
[request setTimeOutSeconds:30];