-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Nonexistant blocks clog up bitswap #830
Comments
great question. i think this should be done by callers-- i.e. if the gateway fails to find it, and the ctx expires, it should cancel it from bitswap. (not sure what a good way to cancel would be-- maybe binding it to a context?) |
alright, ill keep thinking about this. it might be good to have an |
|
This issue is also partly why our idle bandwidth is so high |
I want to bump this issue, mars had an idle bandwidth usage of 300KB/s, and had several keys in its wantlist that (i beleive) it couldnt find. Restarting the daemon lowered the bandwidth usage dramatically |
@whyrusleeping it should be a matter of expiring the context, right? maybe the entries in the wantlist should have a list of contexts (or a refcount), and if all are cancelled, it's removed |
Yeah, we essentially just need an |
couldnt dial mars this morning, ssh'ed in to check on it, seemed to be running fine, except running
I think this issue needs some higher priority |
oof. agreed. |
this is fixed |
If you request a block that does not exist in the network, bitswap will keep it in its wantlist and expend a significant amount of effort into finding that block. I'm not sure what the best way to solve this is, because what if the requested block is just really far away on a computer with a spotty internet connection? At what point is it acceptable to give up the search?
The text was updated successfully, but these errors were encountered: