forked from Archives/Athou_commafeed
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.CookiePolicy;
|
||||||
import org.apache.http.client.params.HttpClientParams;
|
import org.apache.http.client.params.HttpClientParams;
|
||||||
import org.apache.http.impl.client.DefaultHttpClient;
|
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.HttpConnectionParams;
|
||||||
import org.apache.http.params.HttpParams;
|
import org.apache.http.params.HttpParams;
|
||||||
import org.apache.http.params.HttpProtocolParams;
|
import org.apache.http.params.HttpProtocolParams;
|
||||||
@@ -31,9 +30,6 @@ public class HttpGetter {
|
|||||||
HttpProtocolParams.setContentCharset(params, "UTF-8");
|
HttpProtocolParams.setContentCharset(params, "UTF-8");
|
||||||
HttpConnectionParams.setConnectionTimeout(params, 4000);
|
HttpConnectionParams.setConnectionTimeout(params, 4000);
|
||||||
HttpConnectionParams.setSoTimeout(params, 4000);
|
HttpConnectionParams.setSoTimeout(params, 4000);
|
||||||
httpclient
|
|
||||||
.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(
|
|
||||||
0, false));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
HttpGet httpget = new HttpGet(url);
|
HttpGet httpget = new HttpGet(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user