http 请求 超时时间设置

HttpParams params = new BasicHttpParams(); //设置链接超时时间 Integer CONNECTION_TIMEOUT = 2 * 1000; //设置请求超时2秒钟 根据业务调整 Integer SO_TIMEOUT = 2 * 1000; //设置等待数据超时时间2秒钟 根据业务调整 //定义了当从ClientConnectionManager中检索M
相关文章
相关标签/搜索