kubo/core/node/libp2p
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
..
fd feat: Improve ResourceManager UX (#9338) 2022-11-10 12:25:57 +01:00
addrs.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
discovery.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
dns.go explicit construction of DNS resolver 2021-05-10 21:03:27 -07:00
filters.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
host.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
hostopt.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
libp2p_test.go add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
libp2p.go fix: apply agent-version-suffix to libp2p identify 2022-12-06 12:52:54 +01:00
nat.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
peerstore.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pnet.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pubsub.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
rcmgr_defaults.go fix: future proof with > rcmgr.DefaultLimit for new enum rcmgr values 2023-03-16 13:41:24 +01:00
rcmgr_logging_test.go fix: update rcmgr for go-libp2p v0.25 2023-02-14 22:19:46 +01:00
rcmgr_logging.go docs: libp2p resource management (#9468) 2022-12-08 16:18:04 +01:00
rcmgr_metrics.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
rcmgr.go fix: future proof with > rcmgr.DefaultLimit for new enum rcmgr values 2023-03-16 13:41:24 +01:00
relay.go chore: update go-libp2p to v0.26 (#9656) 2023-02-24 10:34:10 +01:00
routing.go fix: remove timeout on default DHT operations (#9783) 2023-03-30 16:08:43 -04:00
routingopt.go fix: remove timeout on default DHT operations (#9783) 2023-03-30 16:08:43 -04:00
sec.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
smux.go update go-libp2p to v0.24.0 2022-12-12 03:47:17 +01:00
topicdiscovery.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
transport.go fix: correct libp2p transports TODO comments 2022-12-12 22:26:48 +01:00