{"action":"opened","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/432","labels_url":"https://api.github.com/repos/bumptech/glide/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/432/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/432/events","html_url":"https://github.com/bumptech/glide/issues/432","id":69863089,"number":432,"title":"Intermittent failure/timeout","user":{"login":"KennyGoers","id":429628,"avatar_url":"https://avatars.githubusercontent.com/u/429628?v=3","gravatar_id":"","url":"https://api.github.com/users/KennyGoers","html_url":"https://github.com/KennyGoers","followers_url":"https://api.github.com/users/KennyGoers/followers","following_url":"https://api.github.com/users/KennyGoers/following{/other_user}","gists_url":"https://api.github.com/users/KennyGoers/gists{/gist_id}","starred_url":"https://api.github.com/users/KennyGoers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KennyGoers/subscriptions","organizations_url":"https://api.github.com/users/KennyGoers/orgs","repos_url":"https://api.github.com/users/KennyGoers/repos","events_url":"https://api.github.com/users/KennyGoers/events{/privacy}","received_events_url":"https://api.github.com/users/KennyGoers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T14:36:11Z","updated_at":"2015-04-21T14:36:11Z","closed_at":null,"body":"I converted my entire app to use Glide as the image download engine and Ok as the network engine. Works great with far fewer memory issues, but having problems with what appears to be timeouts. In general downloads happen, but about 1 in 5 images just never get downloaded due to the following exception. It appears to be timeout issues, is there a way to adjust timeouts? I would think there would be as this is a problem that can come from slow hosts. Here is the exception log if that is something of interest:\r\n\r\n04-21 00:09:50.296 E/com.newrelic.agent.android﹕ java.net.SocketTimeoutException\r\n04-21 00:09:50.296 I/System.out﹕ NOTIFY STREAM ERROR: java.net.SocketTimeoutException\r\n04-21 00:09:50.296 W/System.err﹕ java.net.SocketTimeoutException\r\n04-21 00:09:50.296 E/com.newrelic.agent.android﹕ java.net.SocketTimeoutException\r\n04-21 00:09:50.296 I/System.out﹕ NOTIFY STREAM ERROR: java.net.SocketTimeoutException\r\n04-21 00:09:50.296 W/System.err﹕ java.net.SocketTimeoutException\r\n04-21 00:09:50.308 W/System.err﹕ at \tat java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)\r\n04-21 00:09:50.308 W/System.err﹕ at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)\r\n04-21 00:09:50.308 W/System.err﹕ at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)\r\n04-21 00:09:50.308 W/System.err﹕ at java.io.BufferedInputStream.read(BufferedInputStream.java:283)\r\n04-21 00:09:50.308 W/System.err﹕ at com.android.okhttp.internal.http.HttpTransport$FixedLengthInputStream.read(HttpTransport.java:386)\r\n04-21 00:09:50.308 W/System.err﹕ at com.newrelic.agent.android.instrumentation.io.CountingInputStream.read(CountingInputStream.java:118)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.fillbuf(RecyclableBufferedInputStream.java:132)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.read(RecyclableBufferedInputStream.java:309)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.fillbuf(RecyclableBufferedInputStream.java:166)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.read(RecyclableBufferedInputStream.java:309)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.util.ExceptionCatchingInputStream.read(ExceptionCatchingInputStream.java:84)\r\n04-21 00:09:50.312 W/System.err﹕ at java.io.FilterInputStream.read(FilterInputStream.java:118)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.util.MarkEnforcingInputStream.read(MarkEnforcingInputStream.java:44)\r\n04-21 00:09:50.312 W/System.err﹕ at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)\r\n04-21 00:09:50.312 W/System.err﹕ at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:620)\r\n04-21 00:09:50.312 W/System.err﹕ at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:596)\r\n04-21 00:09:50.312 W/System.err﹕ at com.newrelic.agent.android.instrumentation.BitmapFactoryInstrumentation.decodeStream(BitmapFactoryInstrumentation.java:91)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.Downsampler.decodeStream(Downsampler.java:325)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.Downsampler.downsampleWithSize(Downsampler.java:217)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.Downsampler.decode(Downsampler.java:151)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.StreamBitmapDecoder.decode(StreamBitmapDecoder.java:50)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.StreamBitmapDecoder.decode(StreamBitmapDecoder.java:19)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.ImageVideoBitmapDecoder.decode(ImageVideoBitmapDecoder.java:39)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.bitmap.ImageVideoBitmapDecoder.decode(ImageVideoBitmapDecoder.java:20)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeBitmapWrapper(GifBitmapWrapperResourceDecoder.java:121)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decodeStream(GifBitmapWrapperResourceDecoder.java:94)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:71)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:61)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceDecoder.decode(GifBitmapWrapperResourceDecoder.java:22)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.DecodeJob.decodeFromSourceData(DecodeJob.java:190)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:177)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58)\r\n04-21 00:09:50.312 W/System.err﹕ at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n04-21 00:09:50.312 W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n04-21 00:09:50.312 W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n04-21 00:09:50.312 W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n04-21 00:09:50.312 W/System.err﹕ at java.lang.Thread.run(Thread.java:841)\r\n04-21 00:09:50.312 W/System.err﹕ at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:52)"}}