Getting frequent D/OkHttp: <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to <domain-name>/<ip> (port 8443) from /<ip-source> (port 50810) after 60000ms: isConnected failed: ETIMEDOUT (Connection timed out) #7643
Labels
bug
Bug in existing code
I am getting frequent(one in 10 times average) D/OkHttp: <-- HTTP FAILED: java.net.SocketTimeoutException from my servers and I have set all timeouts(read, write, connect) to 60seconds but I get this exception in 8-10 seconds and there are no hits on my server for these requests.
Some of the previously closed issues(#6486) discuss IPv4 vs IPv6 issues at the client and/or server-side but my server supports only IPv4 and I made the client(android device) use IPv4 only still I am receiving this.
Can someone please help here,
Depos used -
implementation 'com.squareup.retrofit2:retrofit:2.7.1'
implementation "com.squareup.retrofit2:converter-moshi:2.6.2"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
implementation 'com.squareup.retrofit2:converter-scalars:2.4.0'
The text was updated successfully, but these errors were encountered: