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

ipfs pin add -r times out, but ipfs refs -r does not #1687

Closed
willglynn opened this issue Sep 11, 2015 · 2 comments
Closed

ipfs pin add -r times out, but ipfs refs -r does not #1687

willglynn opened this issue Sep 11, 2015 · 2 comments

Comments

@willglynn
Copy link

$ dig txt ipfs.io +short
"dnslink=/ipfs/QmZfSNpHVzTNi9gezLcgq64Wbj1xhwi9wk4AxYyxMZgtCG"
$ time ipfs pin add -r /ipfs/QmZfSNpHVzTNi9gezLcgq64Wbj1xhwi9wk4AxYyxMZgtCG
Error: pin: context deadline exceeded

real    1m0.031s
user    0m0.011s
sys 0m0.014s

$ ipfs swarm peers | wc -l
      89
$ ipfs refs -r /ipfs/QmZfSNpHVzTNi9gezLcgq64Wbj1xhwi9wk4AxYyxMZgtCG
QmTkQCrspeQDEiFBvphH3ULHYNWr3aXpymGiyjMrrUimtZ
QmNxKkkzXGJ2TpEDeeR6B7j95gx59pLWBk3spKzs1zKyYT
QmUyX3YLX1Exur9kMAGmRfD77WfAnhFR4ov7n2b8hHzwF6
QmZ4DpoqBxuhpTP2UkchfCM71MxAS6Vas16fcTipKjd7cU
QmYJSgxfXYqwjFn17qqpiZYanSdijj3hY7hhAmS3515Ucd
QmYJQ6A68kuRu8gRFD96HTcQf6TTjX2uDwEUjJCMChumQ8
QmNqJXwbBJY8qk3CcST8DRPSb2yEJivnxjy4rfNpv8Kve4
QmNeaEhZuGUDpA35EqHghpufZpEz3btZQCkauEduDgWRdX
QmZCCM1kCpuH4xJwxdMx5C2gqb9VjtJBfntA4z5EEp49B1
<sits forever>

I'm not exactly sure why ipfs pin add -r fails (and I wish it would describe exactly what it's doing when the deadline hits), but I'm opening this issue because I think ipfs refs -r should have the same behavior. I'd rather them both give up after a reasonable period of time, or both hang forever, or both have a --timeout parameter defaulting to the same value.

@rht
Copy link
Contributor

rht commented Sep 11, 2015

Already in #1630

@whyrusleeping
Copy link
Member

All commands respect a --timeout flag, example: ipfs refs -r <hash> --timeout=10m

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

No branches or pull requests

3 participants