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
{{ message }}
Repository navigation
http POST request SocketException when content is large (Android) #195
@cime While I am experimenting with okhttp, I did some research on this issue. What I suspect is the cause for it is related to this StackOverflow Question. Generally it narrows down to Android erroneously keeping alive socket connections already closed by the server.
Could you please try adding the following header to your connection to check whether this is case:
var promise = http.request({
url: "your-url",
method: "POST",
headers: { "connection": "close" } // this forces the connection to close explicitly
});
Activity
atanasovg commentedon Sep 16, 2015
We will try to use okhttp instead of our minimalistic in-house solution. Once we integrate it, the problem will hopefully disappear.
atanasovg commentedon Sep 22, 2015
@cime While I am experimenting with okhttp, I did some research on this issue. What I suspect is the cause for it is related to this StackOverflow Question. Generally it narrows down to Android erroneously keeping alive socket connections already closed by the server.
Could you please try adding the following header to your connection to check whether this is case: