-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: disable provide over HTTP with Routing.Type=auto #9511
fix: disable provide over HTTP with Routing.Type=auto #9511
Conversation
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but test/sharness/t0240-republisher.sh
needs to be fixed.
Interesting case: it was flaky before, but now it fails every time :(
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
be0cf82
to
ca078dd
Compare
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
@lidel I already fixed the problem! PTAL when you have time. |
Adds IPFS_HTTP_ROUTERS and uses it in basic regression test that confirms the default mode (Routing.Type=auto) sends lookups over HTTP for unknown CIDs but no requests are sent with announcements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ajnavarro, works as expected.
Quick note:
- Added basic regression test in 858dc78 that confirms we send GETs but no PUTs
- It introduces
IPFS_HTTP_ROUTERS
override for use in tests (similar toIPFS_NS_MAP
), which allows for tests that work reliably, even without WAN (won't be flaky due to cid.contact).
- It introduces
Applying A solution from #9504
Closes #9504 cc #9417