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

bitswap: search for wantlist providers a little less often #3192

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

whyrusleeping
Copy link
Member

ref: #3182 (comment)

This solution is strictly better than that of the current release. The current 'intended' behaviour is simply way too spammy, We can develop more intelligent solutions as we move forward.

License: MIT
Signed-off-by: Jeromy why@ipfs.io

@whyrusleeping whyrusleeping added the status/in-progress In progress label Sep 6, 2016
@Kubuxu
Copy link
Member

Kubuxu commented Sep 6, 2016

In this PR we are both switching to sending only one entry from the wantlist and reducing the frequency of that send. Doesn't it have big chance of sending the entries to rarely this time?

@whyrusleeping
Copy link
Member Author

@Kubuxu when compared to what was in the release previously, where we only sent the last key in each wantlist, this is better. I could be convinced to keep the interval the same though.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@Kubuxu
Copy link
Member

Kubuxu commented Sep 6, 2016

LGTM, this restores behaviour that was happening all along.

Let's think about improving it in future but on 0.4.4.

@Kubuxu Kubuxu changed the title bitswap: search for wantlist providers a little less often bitswap: send one element from the wantlist instead of all of them Sep 7, 2016
@whyrusleeping whyrusleeping changed the title bitswap: send one element from the wantlist instead of all of them bitswap: search for wantlist providers a little less often Sep 7, 2016
@whyrusleeping whyrusleeping merged commit 7c00bcf into version/0.4.3-rc4 Sep 8, 2016
@whyrusleeping whyrusleeping deleted the fix/bitswap/too-many-findprovs branch September 8, 2016 13:22
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Sep 8, 2016
@jbenet
Copy link
Member

jbenet commented Sep 8, 2016

  • To review, the intended behavior is to make sending diffs be CORRECT, and
    not rely on full wantlist updates for that.
  • We can ease into this by reducing the frequency of wantlist updates, and
    logging when we receive a wantlist that differs from our own expected view
    of it. I.e. We should make it so that wantlist updates are always
    superfluous.
  • Given that the transport is reliable, and connections breaking trigger a
    new reconnection and new full want list, this will have the indented effect.
    On Tue, Sep 6, 2016 at 10:33 PM Jakub Sztandera notifications@github.com
    wrote:

LGTM, this restores behaviour that was happening all along.

Let's think about improving it in future but on 0.4.4.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3192 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIcoSyREqvNCGMJLUE21ubsXrK5VWHnks5qnc4kgaJpZM4J1bso
.

@whyrusleeping whyrusleeping mentioned this pull request Sep 21, 2016
11 tasks
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

Successfully merging this pull request may close these issues.

None yet

3 participants