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