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

feat: add block based read timeout #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aschmahmann
Copy link
Contributor

Would like to do some testing on this before merging, but my suspicion is that continuing to spend resources looking for a block once it's taken more than X time is likely a waste of resources.

This timeout is larger than I'd want since I think there should be a separate one for the first block lookup per query/session as that's likely to be the largest delay. However, this can potentially wait until we have context-based sessions since that will make this kind of plumbing easier.

@lidel lidel added the status/blocked Unable to be worked further until needs are met label Sep 3, 2024
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Triage note: this is waiting for results of staging A/B testing results.

@@ -21,6 +21,8 @@ import (
"github.com/libp2p/go-libp2p/core/routing"
)

const perBlockTimeout = time.Second * 10
Copy link
Member

Choose a reason for hiding this comment

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

Could we bump this to 15s to match implicit defaults from https://github.com/libp2p/go-libp2p/releases/tag/v0.36.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants