Skip to content

Commit

Permalink
pull WIP fix for go-libp2p-kad-dht request goroutine bug
Browse files Browse the repository at this point in the history
This pulls in libp2p/go-libp2p-kad-dht#730,
which hangs on a branch shortly after 0.12.2.

Essentially, this handles priority for requests a bit better,
and drops unimportant requests if they come in too fast.
This should prevent kad-dht from using tons of memory.

Updates #243.
  • Loading branch information
mvdan authored and jordipainan committed Sep 23, 2021
1 parent 1fe8c81 commit 73f8ade
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 53 deletions.
24 changes: 12 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ require (
github.com/ipfs/go-ipfs v0.7.1-0.20210129042248-884a5aebd748
github.com/ipfs/go-ipfs-config v0.12.0
github.com/ipfs/go-ipfs-files v0.0.8
github.com/ipfs/go-log v1.0.4
github.com/ipfs/go-log v1.0.5
github.com/ipfs/interface-go-ipfs-core v0.4.0
github.com/klauspost/compress v1.11.4
github.com/libp2p/go-libp2p v0.13.1-0.20210302020805-6a14d8c23942
github.com/libp2p/go-libp2p v0.14.4
github.com/libp2p/go-libp2p-connmgr v0.2.4
github.com/libp2p/go-libp2p-core v0.8.5
github.com/libp2p/go-libp2p-discovery v0.5.0
github.com/libp2p/go-libp2p-kad-dht v0.11.1
github.com/libp2p/go-libp2p-core v0.8.6
github.com/libp2p/go-libp2p-discovery v0.5.1
github.com/libp2p/go-libp2p-kad-dht v0.12.3-0.20210722180723-7706c7bcfdc7
github.com/libp2p/go-reuseport v0.0.2
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/multiformats/go-multiaddr v0.3.1
github.com/multiformats/go-multiaddr v0.3.3
github.com/p4u/recws v1.2.2-0.20201005083112-7be7f9397e75
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/client_golang v1.10.0
github.com/shirou/gopsutil v3.20.12+incompatible
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
Expand All @@ -49,12 +49,12 @@ require (
github.com/tendermint/tm-db v0.6.4
github.com/timshannon/badgerhold/v3 v3.0.0-20210415132401-e7c90fb5919f
github.com/vocdoni/arbo v0.0.0-20210616072504-a8c7ea980892
github.com/vocdoni/go-external-ip v0.0.0-20210705122950-fae6195a1d44 // indirect
github.com/vocdoni/go-external-ip v0.0.0-20210705122950-fae6195a1d44
github.com/vocdoni/storage-proofs-eth-go v0.1.5
go.uber.org/zap v1.16.0
go.vocdoni.io/proto v1.0.4-0.20210705131333-7925ca319268 // indirect
golang.org/x/crypto v0.0.0-20210317152858-513c2a44f670
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
go.uber.org/zap v1.18.1
go.vocdoni.io/proto v1.0.4-0.20210705131333-7925ca319268
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6
google.golang.org/protobuf v1.25.0
nhooyr.io/websocket v1.8.6
)
Expand Down
Loading

0 comments on commit 73f8ade

Please sign in to comment.