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

Fallback to gateway.ipfs.io #2

Closed
dylanPowers opened this issue Feb 28, 2015 · 2 comments
Closed

Fallback to gateway.ipfs.io #2

dylanPowers opened this issue Feb 28, 2015 · 2 comments

Comments

@dylanPowers
Copy link
Owner

When the local or custom gateway fails for any reason, fall back to gateway.ipfs.io.
Implementation details:

  • Recheck every 5 minutes?
  • Use /version api to check if up
  • Have a command in the options menu to manually check and show the status
@jbenet
Copy link

jbenet commented Mar 3, 2015

  • Recheck every 5 minutes?

FWIW, checking it the service is available locally on every page load is super cheap, because it's local (0 latency). Can start there and do something more complicated later.

  • Use /version api to check if up

yep, this is a good use case for /version

  • Have a command in the options menu to manually check and show the status

+1

@dylanPowers
Copy link
Owner Author

The resulting solution is to wait until a request failure occurs, flag that the local gateway is in a failure state, and then wait 30 seconds before attempting to send requests to the local gateway again. That ended up being the most reasonable solution.

I've closed this in commit 5327452

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