开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜