I am using HttpURLConnection. When I set the timeout to 1 minute, a sequence of asynctasks takes almost 12 seconds to load completely. But when I reduce the timeout value to 6 seconds, the sequence loads results in almost 8 seconds.
By sequence of asynctasks I mean that I have a series of server calls that are executed whenever a user launches my application.
Reducing the timeout value gives me quicker results. This has happened with other people also as mentioned here: httpurlconnection is very slow on Android 4.2
Can anybody explain what's the reason behind this?