The code is like below. If I don't set any timeout parameters, what is the default time out for "new DefaultHttpClient().execute(mConnection)"?
mConnection = new HttpGet(mURL);
mResponse = new DefaultHttpClient().execute(mConnection);
Thanks.
Knowing the time available to provide a response can avoid problems with timeouts. Current implementations select times between 30 and 120 seconds, times that have been empirically determined to be safe.
request timeout — a time period required to process an HTTP call: from sending a request to receiving a response. connection timeout — a time period in which a client should establish a connection with a server. socket timeout — a maximum time of inactivity between two data packets when exchanging data with a server.
The default connection timeout is around 60-70 seconds depending on the platform. The default read timeout is infinity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With