[openstreetmap/openstreetmap-website] Idempotency for API 0.6 (#2201)
notifications at github.com
Sat Apr 20 19:31:04 UTC 2019
@simonpoole : I'm a bit curious as to what's your experience with OkHttp in Vespucci - which as we all know is about to be replaced in the near future due to their bold move to Kotlin.
I found a blog post explicitly mentioning retries of HTTP POSTs "on slow and unreliable connections", see https://medium.com/inloopx/okhttp-is-quietly-retrying-requests-is-your-api-ready-19489ef35ace (with section "Fix the real problem" looking very familiar). Some subsequent pull request and issues seemed to have proposed some changes to is, and I'm not exactly sure if that blog post is still accurate as is.
Some people on Stack Overflow recommended to set `retryOnConnectionFailure=false`, or have some custom interceptor in place. I couldn't find either one by briefly skimming through the Vespucci sources.
Do you have anything special in place to deal with this situation? I would assume poor network connectivity isn't entirely theoretical in places where people use Vespucci.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev