set different http timeouts based on what we are fetching

This commit is contained in:
Athou
2013-06-29 12:05:22 +02:00
parent fd83609d68
commit a425c33cf8
5 changed files with 16 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ public class SubscriptionHandler {
post.setHeader(HttpHeaders.CONTENT_TYPE,
MediaType.APPLICATION_FORM_URLENCODED);
HttpClient client = HttpGetter.newClient();
HttpClient client = HttpGetter.newClient(20000);
try {
post.setEntity(new UrlEncodedFormEntity(nvp));
HttpResponse response = client.execute(post);