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

fix: use default HTTP routers when FullRT DHT client is used #9841

Merged
merged 1 commit into from
May 1, 2023

Conversation

guseggert
Copy link
Contributor

@guseggert guseggert commented Apr 28, 2023

Why this change

It was discovered here that cid.contact was not being queried by default when the accelerated DHT client was enabled. Node operators like the ipfs.io gateway were affected this. This change achieves the intended 0.18 behavior of querying the DHT and cid.contact in parallel even when the accelerated DHT is enabled.

Testing Details

I wrote some tests for this but I couldn't get them to be non-racy, so I'm excluding from this for expediency's sake. I'll keep trying to get them to work and hopefully I can include them in a followup PR. We don't otherwise have any integ tests for the accelerated DHT client.

Otherwise, I tested this by running locally and looking at the prometheus metrics.

@guseggert guseggert self-assigned this Apr 28, 2023
@guseggert guseggert force-pushed the fix/fullrt-http-routing branch from 50c37a6 to 9c132e1 Compare April 28, 2023 21:25
@guseggert guseggert requested a review from Jorropo April 28, 2023 21:28
@guseggert guseggert force-pushed the fix/fullrt-http-routing branch from 9c132e1 to 7f05c65 Compare May 1, 2023 15:54
@guseggert guseggert marked this pull request as ready for review May 1, 2023 16:04
@guseggert guseggert requested a review from a team as a code owner May 1, 2023 16:04
Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

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

LGTM

@guseggert guseggert merged commit 4ca36c4 into master May 1, 2023
@hacdias hacdias deleted the fix/fullrt-http-routing branch May 2, 2023 11:17
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 7, 2023
Highlights

FullRT DHT HTTP Routers

The default HTTP routers are now used when the FullRT DHT client is used. This fixes
the issue where cid.contact is not being queried by default when the accelerated
DHT client was enabled. Read more in (ipfs/kubo#9841).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants