mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user