Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/339.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 什么';使用HttpGet和DefaultHttpClient的默认超时是多少?_Java_Android - Fatal编程技术网

Java 什么';使用HttpGet和DefaultHttpClient的默认超时是多少?

Java 什么';使用HttpGet和DefaultHttpClient的默认超时是多少?,java,android,Java,Android,代码如下所示。如果我没有设置任何超时参数,“new DefaultHttpClient().execute(mConnection)”的默认超时是多少 谢谢。默认连接超时时间约为60-70秒,具体取决于平台。默认读取超时为无穷大 mConnection = new HttpGet(mURL); mResponse = new DefaultHttpClient().execute(mConnection);

代码如下所示。如果我没有设置任何超时参数,“new DefaultHttpClient().execute(mConnection)”的默认超时是多少


谢谢。

默认连接超时时间约为60-70秒,具体取决于平台。默认读取超时为无穷大

mConnection = new HttpGet(mURL);
mResponse = new DefaultHttpClient().execute(mConnection);