Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ganeshpadhayay opened this issue Jan 8, 2023 · 1 comment
Labels
bug Bug in existing code

Comments

@ganeshpadhayay
Copy link

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'

@ganeshpadhayay ganeshpadhayay added the bug Bug in existing code label Jan 8, 2023
@swankjesse
Copy link
Member

Thanks for your question. This issue tracker is only for bug reports with test cases and feature requests. Please ask usage questions on Stack Overflow.
https://stackoverflow.com/questions/tagged/okhttp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code
Projects
None yet
Development

No branches or pull requests

2 participants