Skip to content

try harder to not send duplicate blocks - #1166

Merged
jbenet merged 3 commits into
masterfrom
fix/bitswap-multisend
May 5, 2015
Merged

try harder to not send duplicate blocks#1166
jbenet merged 3 commits into
masterfrom
fix/bitswap-multisend

Conversation

@whyrusleeping

Copy link
Copy Markdown
Member

I havent tested this in the field yet, need to get some better metrics in place first. But this should help out quite a bit with transfer speeds, if my hunch is correct.

@whyrusleeping whyrusleeping added topic/bitswap Topic bitswap topic/perf Performance labels Apr 29, 2015
@whyrusleeping whyrusleeping self-assigned this Apr 29, 2015
@whyrusleeping whyrusleeping added the status/in-progress In progress label Apr 29, 2015
@jbenet

jbenet commented Apr 29, 2015

Copy link
Copy Markdown
Member

should write a test case for it

@whyrusleeping

Copy link
Copy Markdown
Member Author

@jbenet I've been trying to think about how to work this into a test. The problem i'm having is that we only see the issue on higher latency connections, otherwise the cancels arrive in a timely manner and do their job of preventing duplicate sends. So finding a way to repro this is what ill be working on today

@jbenet

jbenet commented Apr 29, 2015

Copy link
Copy Markdown
Member

There's a way to add latency to mocknet or something. Take a look at the epic/ tests.

@jbenet

jbenet commented May 1, 2015

Copy link
Copy Markdown
Member

@whyrusleeping I think the dialer / net stuff should be its own PR?

@whyrusleeping

Copy link
Copy Markdown
Member Author

Yeah, i was just hacking on the same branch. Ill break it up in a little bit

@whyrusleeping
whyrusleeping force-pushed the fix/bitswap-multisend branch from 757cd48 to f998339 Compare May 1, 2015 09:13
Comment thread exchange/bitswap/bitswap.go Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

move this into ReceiveMessage, dont log, but maybe record statistics to be printed out by ipfs bitswap stat

@jbenet

jbenet commented May 5, 2015

Copy link
Copy Markdown
Member

update here?

@whyrusleeping

Copy link
Copy Markdown
Member Author

@jbenet this is RFCR

@jbenet

jbenet commented May 5, 2015

Copy link
Copy Markdown
Member

@whyrusleeping LGTM

jbenet added a commit that referenced this pull request May 5, 2015
try harder to not send duplicate blocks
@jbenet
jbenet merged commit 9959643 into master May 5, 2015
@jbenet
jbenet deleted the fix/bitswap-multisend branch May 5, 2015 04:07
@jbenet jbenet removed the status/in-progress In progress label May 5, 2015
gammazero added a commit that referenced this pull request Jun 8, 2026
gammazero added a commit that referenced this pull request Jun 8, 2026
* chore: bump boxo to test ipfs/boxo#1166

Bumps github.com/ipfs/boxo to the tip of fix/ipns-cache-control-expiry
(55fd621d1872) to exercise the IPNS cache-control/TTL/EOL fixes from
ipfs/boxo#1166. Root, docs/examples, and test/dependencies modules
tidied via make mod_tidy.

Signed-off-by: Marcin Rataj <lidel@lidel.org>

* fix: validate ipns lifetime and ttl settings

ipfs name publish now sanitizes its duration flags instead of emitting
a record that fails verification later: a non-positive --lifetime and a
negative --ttl are rejected, an explicit --ttl over --lifetime is
rejected, and an omitted --ttl is capped to --lifetime. The --lifetime
and --ttl defaults are applied server-side so an explicit value is
distinguishable from the default.

The daemon also refuses to start when Ipns.RecordLifetime is shorter
than Ipns.RepublishPeriod, which would let records expire before they
are republished.

Signed-off-by: Marcin Rataj <lidel@lidel.org>

* switch to boxo@main with fix #1166

---------

Signed-off-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: gammazero <11790789+gammazero@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic/bitswap Topic bitswap topic/perf Performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants