You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I enable gzip encoding as follow with StrictMode enabled:
ignitedHttp.setGzipEncodingEnabled(true);
I see errors in LogCat:
08-21 16:09:14.158: E/StrictMode(2083): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
08-21 16:09:14.158: E/StrictMode(2083): java.lang.Throwable: Explicit termination method 'end' not called
08-21 16:09:14.158: E/StrictMode(2083): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.Inflater.(Inflater.java:82)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:96)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:81)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.gzip.GzipInflatingEntity.getContent(GzipInflatingEntity.java:21)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:100)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:64)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.entity.BufferedHttpEntity.(BufferedHttpEntity.java:62)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpResponseImpl.(IgnitedHttpResponseImpl.java:35)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.handleResponse(IgnitedHttpRequestBase.java:81)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.handleResponse(IgnitedHttpRequestBase.java:1)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.send(IgnitedHttpRequestBase.java:118)
Somehow the input stream wrapped into a GZIPInputStream is never closed. I tried looking into the IgnitedHttp code and everything looks fine to me. So it's probably an issue with the Apache implementation and StrictMode.
Any thought?
The text was updated successfully, but these errors were encountered:
If I enable gzip encoding as follow with StrictMode enabled:
ignitedHttp.setGzipEncodingEnabled(true);
I see errors in LogCat:
08-21 16:09:14.158: E/StrictMode(2083): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
08-21 16:09:14.158: E/StrictMode(2083): java.lang.Throwable: Explicit termination method 'end' not called
08-21 16:09:14.158: E/StrictMode(2083): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.Inflater.(Inflater.java:82)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:96)
08-21 16:09:14.158: E/StrictMode(2083): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:81)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.gzip.GzipInflatingEntity.getContent(GzipInflatingEntity.java:21)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:100)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:64)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.entity.BufferedHttpEntity.(BufferedHttpEntity.java:62)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpResponseImpl.(IgnitedHttpResponseImpl.java:35)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.handleResponse(IgnitedHttpRequestBase.java:81)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.handleResponse(IgnitedHttpRequestBase.java:1)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
08-21 16:09:14.158: E/StrictMode(2083): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
08-21 16:09:14.158: E/StrictMode(2083): at com.github.ignition.support.http.IgnitedHttpRequestBase.send(IgnitedHttpRequestBase.java:118)
Somehow the input stream wrapped into a GZIPInputStream is never closed. I tried looking into the IgnitedHttp code and everything looks fine to me. So it's probably an issue with the Apache implementation and StrictMode.
Any thought?
The text was updated successfully, but these errors were encountered: