Marten Seemann
f4f663945c
autorelay: only try to obtain a reservation once per peer, implement backoff
2 years ago
Marten Seemann
b53350b856
autorelay: remove ticker in favor of a dynamic timer
2 years ago
Marten Seemann
c7ddba222a
autorelay: make the maximum candidate age configurable
2 years ago
Marten Seemann
74eb79401e
autorelay: poll for new candidates, when needed
2 years ago
Marten Seemann
1a8d1180ae
autorelay: use a mock clock in test
2 years ago
Marten Seemann
6f39054fe5
autorelay: fix counting of relays
2 years ago
Marten Seemann
7229f4234e
autorelay: make sure relay service is up and running in tests
3 years ago
corverroos
36422d5d8c
routed: respect force direct dial context ( #1665 )
* routed: respect force direct dial context
* Also fix holepunch debug logging params
2 years ago
Marten Seemann
eb77ba41e9
pstoremanager: fix flaky TestClose ( #1649 )
2 years ago
Chinmay Kousik
b845164d2f
Allow adding prologue to noise connections ( #1663 )
* Allow adding prologue to noise connections
* Expose session transport
* Expose session transport
* cleanup noise prologue test
* fix staticheck error
2 years ago
Marco Munizaga
b886f63543
Nits
2 years ago
Marco Munizaga
8497c2edd5
Merge new docs into readme
2 years ago
Julien Muret
68722aa1e9
connmgr: add nowatchdog go build tag ( #1666 )
Add the capacity to disable watchdog even if cgo is present.
2 years ago
MGMCN
52e5a3517f
mdns: don't discover ourselves ( #1661 )
* bug fixed in mdns.go
* TestSelfDiscovery removed
* TestOtherDiscovery modified
* TestOtherDiscovery modified
* gofmt unhappy fixed?
Co-authored-by: gaoshan <takayamachina@gmail.com>
2 years ago
Peter Argue
8a8734387f
Support generating custom x509 certificates ( #1481 )
* Support generating custom x509 certificates
* add unit tests
* updates from review with tests
* fix type in test email
2 years ago
Laurent Senta
4ebef8672c
ci: add testground ping interop workflow ( #1625 )
2 years ago
Marco Munizaga
00c25201b9
Add docs in the godoc
2 years ago
Marco Munizaga
ba3117d550
Merge pull request #72 from libp2p/marco/record-block-resource-dir
Record which direction the resource was blocked
2 years ago
Marco Munizaga
3b3605c666
Release v0.21.0 ( #1648 )
See https://github.com/libp2p/go-libp2p/issues/1514
2 years ago
Marco Munizaga
a32c7a308d
Add size hint to slice to hopefully have the tag slice allocated on the stack
2 years ago
Marco Munizaga
562d88fda0
Merge pull request #73 from libp2p/marco/grafana-aggregate-mem-stats-across-all-instances
Simplify mem graphs in stock grafana dashboard
2 years ago
Marten Seemann
d74921df0a
make it possible to use a custom tls.Config for listening and dialing ( #22 )
2 years ago
Marten Seemann
2823159a99
optimize expiry periods of certificates ( #21 )
2 years ago
Marten Seemann
7facd81bba
ping: optimize random number generation ( #1658 )
2 years ago
Steven Allen
36c13f9397
feat: switch noise to use minio's SHA256 implementation ( #1657 )
On my 11th gen Intel laptop, this library is 3x faster than the default
one (and is the one we use in go-multihash).
See below (GEN_ is the builtin version, SHA_ is this library).
BenchmarkHash/SHA_/8Bytes-8 94.31 ns/op 84.82 MB/s
BenchmarkHash/SHA_/1K-8 926.9 ns/op 1104.74 MB/s
BenchmarkHash/SHA_/8K-8 6793 ns/op 1205.98 MB/s
BenchmarkHash/SHA_/1M-8 883694 ns/op 1186.58 MB/s
BenchmarkHash/SHA_/5M-8 4347298 ns/op 1206.01 MB/s
BenchmarkHash/SHA_/10M-8 8810864 ns/op 1190.09 MB/s
BenchmarkHash/GEN_/8Bytes-8 283.2 ns/op 28.25 MB/s
BenchmarkHash/GEN_/1K-8 3587 ns/op 285.48 MB/s
BenchmarkHash/GEN_/8K-8 27706 ns/op 295.68 MB/s
BenchmarkHash/GEN_/1M-8 3414827 ns/op 307.07 MB/s
BenchmarkHash/GEN_/5M-8 16789216 ns/op 312.28 MB/s
BenchmarkHash/GEN_/10M-8 34073478 ns/op 307.74 MB/s
2 years ago
Steven Allen
8d72753fec
chore: update go-multihash to remove blake2b-simd dep ( #1656 )
We now use the go dev's version, which is faster. Unfortunately, minio's
sha256 implementation is still significantly faster than the built-in
version, so we can't drop that yet.
part of #1646
2 years ago
Marten Seemann
d14ac01b83
remove unused MultistreamSemverMatcher ( #277 )
2 years ago
Steven Allen
5eaa48fbab
chore: remove duplicate clock dep ( #1654 )
2 years ago
Marten Seemann
ff5aa304a0
simplify certificate generation
2 years ago
Marten Seemann
9f2e830b65
remove member variable for certificate validity from cert manager
2 years ago
Marten Seemann
ebcb51309f
use a mock clock in cert manager tests ( #20 )
2 years ago
Marten Seemann
d626e80696
move connection interface to conn.go
2 years ago
Marten Seemann
f0dbd3e7e7
fix flaky resource manager test ( #19 )
2 years ago
Marten Seemann
851e6ba171
verify the hash of the server's certificate ( #16 )
2 years ago
Marten Seemann
7e8ca3ac06
implement InterceptSecured for accepted connections
2 years ago
Marten Seemann
a508e94004
implement InterceptAccept connection gating
2 years ago
Marten Seemann
2c6fc83df0
implement connection gating for dials
2 years ago
Marten Seemann
ecc1eff49d
refactor the conn constructor
2 years ago
Marten Seemann
69341f6e33
properly implement conn.IsClosed ( #13 )
2 years ago
Marten Seemann
c7149b3be4
pass the connection scope to the connection ( #11 )
2 years ago
Marten Seemann
3d351e4ed3
swarm: mark dialing WebTransport addresses as expensive ( #1650 )
2 years ago
Marten Seemann
3b13c8342d
move extraction of certificate hashes to a separate function
2 years ago
Marten Seemann
f55a4ffc9a
use the resource manager when accepting connections
2 years ago
Marten Seemann
2110e680dd
add a function to convert a IP:port string to a WebTransport multiaddr
2 years ago
Marten Seemann
468fd51967
move the HTTP handler to a separate method on the listener
2 years ago
Marten Seemann
ed5a2f58da
use the resource manager when dialing
2 years ago
Marten Seemann
106cbc3810
return the listener's HTTP handler as soon as the handshake completes
With the most recent webtransport-go, it's not necessary to block any more.
2 years ago
Marten Seemann
d155f11514
tighten multiaddr conversion logic
2 years ago
Marten Seemann
c21356efb1
remove peer.IDFromString ( #274 )
2 years ago
Marco Munizaga
54eff3d226
Simplify memory graphs in stock grafana dashboard
2 years ago