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

Configure message parameters #247

Merged
merged 3 commits into from
Oct 13, 2021
Merged

Configure message parameters #247

merged 3 commits into from
Oct 13, 2021

Conversation

hannahhoward
Copy link
Collaborator

@hannahhoward hannahhoward commented Oct 13, 2021

Goals

Currently, for each network message, graphsync attempts to send it for 10 minutes, then if it fails, retries 10 times. So for a network message to truly fail, it takes 100 minutes. This seems like an extremely long time.

Implementation

  • Copy over some network layer configuration code from go-bitswap
  • Allow configuring these values. For the time being, I'm not changing the defaults -- it seems like it would be better to experiment in the estuary context and then see if there are clear correct winners for what we should do here.

allow setting custom values for timing out messages and number of retries
hannahhoward and others added 2 commits October 12, 2021 22:07
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Rod Vagg <rod@vagg.org>
@hannahhoward hannahhoward merged commit 16294a1 into main Oct 13, 2021
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
@mvdan mvdan deleted the feat/increase-fail-speed branch December 15, 2021 14:18
marten-seemann pushed a commit that referenced this pull request Mar 2, 2023
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.

2 participants