kubo/core
Gus Eggert a09c8df24d
fix: remove timeout on default DHT operations (#9783)
* fix: remove timeout on default DHT operations

This removes the timeout by default for DHT operations. In particular
this causes issues with ProvideMany requests which can take an
indeterminate amount of time, but really these should just respect
context timeouts by default. Users can still specify timeouts here if
they want, but by default they will be set to "0" which means "no
timeout".

This is unlikely to break existing users of custom routing, because
there was previously no utility in configuring a router with timeout=0
because that would cause the router to immediately fail, so it is
unlikely (and incorrect) if anybody was using timeout=0.

* fix: remove 5m timeout on ProvideManyRouter

For context see
5fda291b66

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-03-30 16:08:43 -04:00
..
bootstrap chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
commands feat: add identify option to swarm peers command 2023-03-30 04:34:57 +00:00
coreapi chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
corehttp refactor: switch gateway code to new API from go-libipfs (#9681) 2023-03-30 13:20:37 +00:00
corerepo chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
coreunix chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
mock chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
node fix: remove timeout on default DHT operations (#9783) 2023-03-30 16:08:43 -04:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
builder.go fix: silence staticcheck warning for fx.Extract usage 2022-12-12 03:47:17 +01:00
core_test.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00
core.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00