Open GoogleCodeExporter opened 9 years ago
I seem to only be getting this on POST requests and I think someone also
mentioned this in the link mentioned above.
Original comment by dorian.c...@googlemail.com
on 27 Mar 2013 at 3:58
Im getting this on a Nexus 4 running 4.2.2
Original comment by dorian.c...@googlemail.com
on 28 Mar 2013 at 11:22
The fix works but means the fix for this
https://code.google.com/p/android/issues/detail?id=29509 bug cannot be
implemented. When a carrier uses a **proxy** for network data and an **https**
call is made over **3g** the socket is closed automatically using
HttpUrlConnection. It seems JellyBean + HttpUrlConnection is not a happy bunny.
:(
Original comment by dorian.c...@googlemail.com
on 8 Apr 2013 at 10:39
[deleted comment]
Still getting this compiling with android 4.4, so this has not been fixed.
And yes, seems to only work on POST requests. In particular, if prior GET
requests are issued with keep-alive connections, a POST request, after writing
any data, will raise an EOF exception when trying to read the response headers.
This can be avoided by setting the connection to close on both the GET and POST
requests. But as was pointed out, this conflicts with another issue.
Original comment by mbar...@secureapps.us
on 14 Nov 2013 at 12:48
I think u should integrate httpclient .http://hc.apache.org/httpclient-3.x/
Original comment by gshi...@quikr.com
on 14 Nov 2013 at 6:15
This seems to be specific to the underlying java.net.HttpURLConnection. Unlike
#5, I can not reproduce this issue on Android 4.4 API 19 (KitKat). Perhaps
there are other issues involved which cause similar symptoms?
I am able to reproduce this 100% of the time on Android 4.3 API 18 (JB MR2) by
sending a POST request and then idling the application for 10 minutes. This
idle duration depends on the server's keepalive timeout. After a sufficiently
long idle period, the next 2-4 POST requests fail with EOFExceptions before
requests begin to work again.
Calling HttpURLConnection's setRequestProperty("Connection", "close") prevents
this bug from happening.
Original comment by james.w...@gmail.com
on 21 May 2014 at 5:28
I was able to work around this problem using a retry mechanism. The trick is to
ensure that the number of retries corresponds with the "http.maxConnections"
system property. I shared the code here:
http://stackoverflow.com/a/23795099/204480
Original comment by james.w...@gmail.com
on 22 May 2014 at 1:14
I had this behavior on several Devices from Samsung. HTC, Asus and LG didn't
have this problem. All Devices are 4.1.2 and above.
The workaround from the OP saved me. Thanks a lot.
Original comment by grob....@gmail.com
on 30 Jul 2014 at 5:04
Original issue reported on code.google.com by
chris.mark.jenkins@gmail.com
on 27 Mar 2013 at 3:55