开发者

What's the default timeout of using HttpGet and DefaultHttpClient?

开发者 https://www.devze.com 2023-01-16 06:50 出处:网络
The code is like below. If I don\'t set any timeout parameters, what is the default time out for \"new DefaultHttpClient().execute(mConnection)\"?

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(mCon开发者_StackOverflow社区nection);

Thanks.


The default connection timeout is around 60-70 seconds depending on the platform. The default read timeout is infinity.

0

精彩评论

暂无评论...
验证码 换一张
取 消