actually leave the handle as is, some feeds take a lot of time building at first but then are cached and a retry is working then

This commit is contained in:
Athou
2013-04-13 07:23:21 +02:00
parent 281ff6d883
commit f148fd3ead

View File

@@ -9,7 +9,6 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.params.HttpProtocolParams;
@@ -31,9 +30,6 @@ public class HttpGetter {
HttpProtocolParams.setContentCharset(params, "UTF-8");
HttpConnectionParams.setConnectionTimeout(params, 4000);
HttpConnectionParams.setSoTimeout(params, 4000);
httpclient
.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(
0, false));
try {
HttpGet httpget = new HttpGet(url);