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

reduce dht bandwidth consumption #986

Merged
merged 1 commit into from
Apr 1, 2015
Merged

Conversation

whyrusleeping
Copy link
Member

A couple small changes to reduce overall dht bandwidth consumption

@whyrusleeping whyrusleeping added topic/dht Topic dht topic/bandwidth reduction Topic bandwidth reduction labels Mar 30, 2015
@whyrusleeping whyrusleeping self-assigned this Mar 30, 2015
@whyrusleeping whyrusleeping added the status/in-progress In progress label Mar 30, 2015
@@ -226,5 +226,5 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M
dht.providers.AddProvider(ctx, key, p)
}

return pmes, nil // send back same msg as confirmation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm so then we really have no way of confirming. could we maybe comment this out and make note of this? from a protocol standpoint it will be useful to confirm these things-- but perhaps the protocol can change.

By the way, muxing all dht traffic over one stream will really, really help.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes it more closely follow kademlia, and makes more sense with us wanting to change over to a UDP protocol for the DHT (not saying thats happening soon, just those concepts).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed on that. but some dht protocols (particularly if we start doing cryptographic proofs on things) may call for other constructions too. in any case, not very important. either way

@jbenet
Copy link
Member

jbenet commented Mar 30, 2015

One comment, else LGTM

@whyrusleeping whyrusleeping added codereview and removed status/in-progress In progress labels Mar 31, 2015
@jbenet jbenet mentioned this pull request Mar 31, 2015
52 tasks
whyrusleeping added a commit that referenced this pull request Apr 1, 2015
reduce dht bandwidth consumption
@whyrusleeping whyrusleeping merged commit 5e3f9f3 into master Apr 1, 2015
@Kubuxu Kubuxu deleted the feat/dht-bw-usage branch May 13, 2016 22:04
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
reduce dht bandwidth consumption
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/bandwidth reduction Topic bandwidth reduction topic/dht Topic dht
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants