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

Android - OkHttp TimeOut not respected. #6374

Open
VanyaHuamanBottleRocket opened this issue Jan 31, 2025 · 3 comments
Open

Android - OkHttp TimeOut not respected. #6374

VanyaHuamanBottleRocket opened this issue Jan 31, 2025 · 3 comments

Comments

@VanyaHuamanBottleRocket

Version

4.1.0

Summary

I am using an OkHttp Client as my base client. It has timeouts already defined but the apollo client doesn't seem to respect it.

Image
Image
Image

Steps to reproduce the behavior

I tested by using charles and breakpointing the call response and observing the time.

Logs

(Your logs here)
@martinbonnin
Copy link
Contributor

Thanks for opening this!

I can take a look at this! Do you know if it's the read timeout or connect timeout which is not observed? Can you share actual numbers that you are observing?

@VanyaHuamanBottleRocket
Copy link
Author

Image

Looks like I am partially wrong. Looks like it is "retrying" the call at the timeout of 30 seconds and never returning result to me. I would expect the lib to send back a failure not retry again and again.

@martinbonnin
Copy link
Contributor

Can you try without specifying retryOnConnectionFailure() in your OkHttpClient builder?

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

No branches or pull requests

2 participants