httpclient.getHttpConnectionManager().getParams().setConnectionTimeout方法不行,因为Android集成的httpclient没这方法
httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 3000);
//连接超时
httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 5000);
//读取超时