On Aug 22, 4:46 pm, b0b <[email protected]> wrote: > That's indeed interesting. > In parallel of the code above blocking on decoding a FileInputStream, > I concurrent threads > invoking BitmapFactory.decodeStream() with an InputStream from a > HttpGet executed by a slightlly modifiedAndroidHttpClient(to use > httpclient/httpcore 4.1). > > I'm using a single HttpClient instance for the lifetime of my app, as > recommended by Apache. It is quite > inefficient to create a HttpClient per request as a HttpClient > creates a thread pool and it is designed to > handle several concurrent connections is a thread safe way (if using a > ThreadSafeClientConnManager that is). > > Now it really looks like a deadlock in nativeDecodeStream() but if > that's the case it is a bug. > > I will try to create a HttpClient per request to see if it fixes the > problem. >
Did you find that you have to use an HttpClient per request? Because if so, that really sucks. Nathan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

