Prithvi Shahi
1d98f6409f
chore: add interop testing to release checklist ( #2269 )
2 years ago
Marco Munizaga
3e87ca0862
quic virtual listener: don't panic when quic-go's accept call errors ( #2276 )
2 years ago
Sukun
948cab88d7
tests: add docks for debugging flaky tests ( #2216 )
originally created by @MarcoPolo here
https://github.com/libp2p/go-libp2p/pull/2097
2 years ago
Marten Seemann
b456165430
webtransport: only add cert hashes if we already started listening ( #2271 )
2 years ago
Marco Munizaga
4aabded7b7
Revert "webtransport: initialize the certmanager when creating the transport ( #2268 )" ( #2273 )
This reverts commit feda23995d
.
2 years ago
Marten Seemann
feda23995d
webtransport: initialize the certmanager when creating the transport ( #2268 )
This solves a deadlock when AddCertHashes is called before Listen.
It also means that we're initializing a certmanaer even if we're only using the
WebTransport transport for dialing and not for listening, but that's a fringe
use case anyway.
2 years ago
Marten Seemann
410248e111
Merge pull request #2248 from libp2p/simplify-nat
move NAT mapping logic out of the host, add tests for NAT handling
2 years ago
Marten Seemann
66a6dc9a55
githooks: add a githook to check that the test-plans go.mod is tidied ( #2256 )
2 years ago
Marten Seemann
ed8a07dd4f
quic: fix race condition when generating random holepunch packet ( #2263 )
2 years ago
Sukun
f7a45b69b3
swarm: remove unused variable in addrDial ( #2257 )
2 years ago
Marten Seemann
e4f1e0cbb4
examples: update go-libp2p to v0.27.1 ( #2254 )
2 years ago
Marten Seemann
60e9adedf6
remove ugly private mockgen workaround
2 years ago
Marten Seemann
4ee60e39d0
move more of the NAT mapping logging to the NAT manager
2 years ago
Marten Seemann
1ad214650c
nat: replace alloc-heavy nat.Mapping with explicit GetMapping method
2 years ago
Marten Seemann
bdeab19c66
nat: properly remove port mapping
2 years ago
Marten Seemann
c4fb97455c
natmgr: remove unused Ready method
2 years ago
Marten Seemann
c62be4081c
nat: use a single Go routine to renew NAT mappings
2 years ago
Marten Seemann
f5cbaf1721
nat: rename NewMapping to AddMapping, remove unused Mapping return value
2 years ago
Marten Seemann
ded75c34d4
nat: remove unused NAT method from the Mapping interface
2 years ago
Marco Munizaga
c3096923a0
release v0.27.1 ( #2252 )
2 years ago
Marco Munizaga
fbf11bc5c0
Infer public webtransport addrs from quic-v1 addrs. ( #2251 )
* Infer external webtransport addrs from external quic addrs
* Infer external webtransport addrs from external quic addrs is now pure
* Remove ConnManager method
* Nits
* Dedupe addrs
* Revert "Dedupe addrs"
This reverts commit b63155f4a3997d7adfebc337d0262defca329c15.
* Assume input is deduped
2 years ago
Marten Seemann
7dc3b81a0a
basichost: don't allocate when deduplicating multiaddrs ( #2206 )
* basichost: don't allocate when deduplicating multiaddrs
* fix sort.Slice less comparison
Co-authored-by: Marco Munizaga <git@marcopolo.io>
* interop: don't send loopback addrs
---------
Co-authored-by: Marco Munizaga <git@marcopolo.io>
2 years ago
Marco Munizaga
ba328aea70
identify: fix normalization of interface listen addresses ( #2250 )
* Fix listenAddrs comparison in maybeRecordObservation
* Add test
* identify: use network.ConnMultiaddrs interface
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Sukun
952f7cbc5c
autonat: fix flaky TestAutoNATDialRefused ( #2245 )
2 years ago
Marten Seemann
0119e9a2b6
basichost: remove stray print statement in test ( #2249 )
2 years ago
Marten Seemann
d99606833c
swarm: fix multiaddr comparison in ListenClose ( #2247 )
2 years ago
Marten Seemann
06995921c1
release v0.27.0 ( #2242 )
2 years ago
Marten Seemann
f707058b57
go.mod: add retraction of v0.26.1 ( #2243 )
2 years ago
Marten Seemann
cdd0b6056e
chore: update all deps ( #2240 )
2 years ago
Marten Seemann
d227d7b9d4
add a security policy ( #2238 )
* add a security policy
* fix typo
* Update SECURITY.md
---------
Co-authored-by: Prithvi Shahi <50885601+p-shahi@users.noreply.github.com>
2 years ago
Prithvi Shahi
c317664d1a
chore: 0.27.0 changelog entries ( #2241 )
2 years ago
Marco Munizaga
3b3f8baf93
correctly handle WebTransport addresses without certhashes ( #2239 )
* Add helpers to transform webtransport multiaddrs in AddrsFactory
* Remove unused line
* PR nits
* Add wrapper around AddrsFactory to fill in missing certhash
* PR nits
* Handle WebTransport multiaddrs in observed addr manager
* Remove unneccessary change
* Remove unused func
* Use SplitLast
* Add comment
* Clone multiaddr before splitting last
* Revert "Clone multiaddr before splitting last"
This reverts commit f168a8e8b6
.
* Wait for certmanager to be instantiated
* Copy addrs slice before modifying
* Fix stalled test
2 years ago
Sukun
15ec149403
autorelay: add metrics ( #2185 )
* autorelay: add metrics
metrics added:
relay finder status
reservation request outcomes
current reservations
candidate circuit v2 support
current candidates
relay addresses updated
num relay address
scheduled work times
* autorelay: fix refresh reservations bug
* fix max value hack
* improve tracking errors in reservation requests
* fix config-query in grafana
* add candidate loop state panel
* fix logging
* reset metrics on relayfinder stop
* update dashboard
* update dashboard
2 years ago
Sukun
0a961d31c3
autonat: don't change status on dial request refused ( #2225 )
* autonat: don't change status on dial request refused
* retry immediately on dial refused
* add retryProbe flag
* fix retryProbe update
* make retryProbe local to background
* fix flaky test
2 years ago
Sukun
88132e976f
autonat: fix closing of listeners in dialPolicy tests ( #2226 )
2 years ago
Bryan White
8c466ab7f8
discovery (backoff): fix typo in comment ( #2214 )
2 years ago
Sukun
6cab5e8095
relaysvc: flaky TestReachabilityChangeEvent ( #2215 )
2 years ago
Marco Munizaga
b23d8b580b
Add wss transport to interop tester impl ( #2178 )
2 years ago
Marten Seemann
03d4061059
tests: add a stream read deadline transport test ( #2210 )
2 years ago
Marco Munizaga
950151e861
autorelay: fix busy loop bug and flaky tests in relay finder ( #2208 )
* Don't run clock add in eventually loop
* Fix busy loop
* Fix scheduling bug
* Add new mock clock
* Add busy loop test
* With comments
* Fix comment
* Move mockclock to separate file
* Fix race
* Fix potential deadlock
* Fix flaky TestBackoff
* Fix import
* Fix how mock implements interface
2 years ago
Marten Seemann
81058ed234
tests: test mplex and Yamux, Noise and TLS in transport tests ( #2209 )
2 years ago
Marco Munizaga
0dea4afcaf
tests: add some basic transport integration tests ( #2207 )
* Add integration test for transports
* Review comments
2 years ago
Sukun
9e208249b5
autorelay: remove unused semaphore ( #2184 )
2 years ago
Marten Seemann
0d7e852b0a
basichost: prevent duplicate dials ( #2196 )
2 years ago
Marten Seemann
eeb685f68f
websocket: don't set a WSS multiaddr for accepted unencrypted conns ( #2199 )
2 years ago
Marco Munizaga
80867887cc
websocket: Don't limit message sizes in the websocket reader ( #2193 )
* Don't limit message sizes in the websocket reader
* Remove fmt.println
* Update p2p/transport/websocket/listener.go
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
* Update p2p/transport/websocket/listener.go
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Sukun
ed96a64de6
identify: fix stale comment ( #2179 )
2 years ago
Sukun
bfc6fc30de
relay service: add metrics ( #2154 )
* relay service: add metrics
Metrics Added:
ReservationRequest: Opened, Closed, Renewed
ReservationRequestResponseStatus
ReservationRejectionReason
ConnectionRequest: Opened, Closed
ConnectionRequestResponseStatus
ConnectionRejectionReason
ConnectionDuration
BytesTransferred
RelayStatus
* add dashboard and changelog
* bugfix
* add metrics tests
* address review comments
* rename dashboard
* address review comments
* change label to rolling avg
2 years ago
Marco Munizaga
5330570d1c
identify: Fix IdentifyWait when Connected events happen out of order ( #2173 )
* Add test case
* Id works even if Connected notifications happen out of order
* Add IsClosed shim
* Call basichost `.Start()` for all tests
2 years ago
Laurent Senta
7effad77aa
chore: fix ressource manager's README ( #2168 )
2 years ago