summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-30 00:00:57 +0400
committerAndrew Dolgov <[email protected]>2013-07-30 00:00:57 +0400
commit30af06f37f522176a218f15f3ea8beec4d128352 (patch)
tree9bd3fc7172cafd2a82a2e78bc5bd785cee030ae9
parente2b195e5ede61cfbd304b736caea6c5f8e1f5234 (diff)
imagecacheservice: enforce data read timeout
-rw-r--r--src/org/fox/ttrss/util/ImageCacheService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/util/ImageCacheService.java b/src/org/fox/ttrss/util/ImageCacheService.java
index 8bd4840c..5ed411a6 100644
--- a/src/org/fox/ttrss/util/ImageCacheService.java
+++ b/src/org/fox/ttrss/util/ImageCacheService.java
@@ -119,6 +119,7 @@ public class ImageCacheService extends IntentService {
URL url = new URL(urlString);
URLConnection urlConnection = url.openConnection();
urlConnection.setConnectTimeout(250);
+ urlConnection.setReadTimeout(15*1000);
return urlConnection.getInputStream();
} catch (Exception ex) {
return null;