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

market: Real-world fixes #319

Merged
merged 126 commits into from
Dec 11, 2024
Merged

market: Real-world fixes #319

merged 126 commits into from
Dec 11, 2024

Conversation

magik6k
Copy link
Collaborator

@magik6k magik6k commented Nov 6, 2024

Don't merge yet, keeping this around until it mostly works

@magik6k magik6k force-pushed the fix/market-adventures branch 7 times, most recently from de2dde8 to 486cd9a Compare November 11, 2024 08:34
@magik6k
Copy link
Collaborator Author

magik6k commented Nov 13, 2024

The DenyUnknownClients appears to be flipped, at least in the webui

@magik6k magik6k force-pushed the fix/market-adventures branch 2 times, most recently from bc622a3 to ab418de Compare November 18, 2024 11:15
@magik6k magik6k force-pushed the fix/market-adventures branch from 029ceb4 to 5ed280a Compare December 3, 2024 17:30
@magik6k magik6k force-pushed the fix/market-adventures branch from c05a071 to 95cad2d Compare December 5, 2024 18:25
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

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

Looks good with some minor changes.

cmd/curio/test-debug.go Outdated Show resolved Hide resolved
@@ -160,20 +153,35 @@ func StartHTTPServer(ctx context.Context, d *deps.Deps) error {
Addr: cfg.ListenAddress,
Handler: libp2pConnMiddleware(loggingMiddleware(compressionMw(chiRouter))), // Attach middlewares
ReadTimeout: cfg.ReadTimeout,
WriteTimeout: cfg.WriteTimeout,
WriteTimeout: time.Hour * 2,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use default here instead of a hardcoded value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So WriteTimeout generally isn't useful for mitigating much, unless you're trying to mitigate successful retrievals.

Later we could bring a much more advanced write rate enforcer from ribs so that /piece uploads have reasonable bounds, but for now setting a low write timeout guarantees that retrievals will fail

Ref https://github.com/FilOzone/ribs/blob/main/ributil/minratewriter.go

web/static/pages/piece/piece-info.mjs Outdated Show resolved Hide resolved
web/static/pages/piece/piece-info.mjs Outdated Show resolved Hide resolved
@magik6k magik6k force-pushed the fix/market-adventures branch from c7bcaa1 to 8b8bf64 Compare December 9, 2024 16:03
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

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

Looks good. We need couple of changes to make tests happy.

market/indexstore/indexstore_test.go Outdated Show resolved Hide resolved
lib/paths/local.go Outdated Show resolved Hide resolved
@LexLuthr LexLuthr merged commit 47c08af into feat/market Dec 11, 2024
14 checks passed
@LexLuthr LexLuthr deleted the fix/market-adventures branch December 11, 2024 11:09
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