Closed JackoxD closed 2 years ago
This is happening many layers below Retrofit and Retrofit has no control over this. I will transfer the issue to OkHttp, but I'm not sure they'll be able to do much here either.
When I ran a trimmed down version of the test it ran for 18 minutes before throwing an EOFException
.
Test is here:
public final class Issue3721Test {
@Test
public void test() throws Exception {
OkHttpClient okHttp = new OkHttpClient.Builder()
.readTimeout(2, TimeUnit.MINUTES)
.build();
Call call = okHttp.newCall(new Request.Builder().url("https://aclas.pimka.net/test.bin").build());
int size = call.execute().body().source().readByteString().size();
assertEquals(24210616, size);
}
}
This was from running on an API 30 emulator with network set to GRPS.
When tou set internet connection on devide to GPRS you has not be able to download a large file (20mb) from server. Packets are receiving later and later (image below) until SocketTimeoutException.
Important you need to set on emulotor settings internet speed to GPRS I've been uploaded a large file to a server and created a test: https://gist.github.com/JackoxD/8f85155ae4c9c05d30ca0ec65c784d2b