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
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
Sukun
43fd678024
relay: fix deadlock when closing ( #2171 )
* fix deadlock on relay service close
* clean up background go routine too
* increase test timeout
2 years ago
Marten Seemann
3fe6278e66
core: remove LocalPrivateKey method from network.Conn interface ( #2144 )
* core: remove LocalPrivateKey method from network.Conn interface
* add Changelog entry
2 years ago
Hlib Kanunnikov
75efaee5cb
routed host: return connection error instead of routing error ( #2169 )
2 years ago
RichΛrd
98837aad15
connmgr: reduce log level for closing connections ( #2165 )
2 years ago
Sukun
03f4762933
circuitv2: cleanup relay service properly ( #2164 )
* circuitv2: cleanup properly
* stop handling disconnected notifications
2 years ago
Prithvi Shahi
a9bba27895
chore: add patch release to changelog ( #2151 )
2 years ago
Marten Seemann
609dcf79ab
chore: remove superfluous testing section from README ( #2150 )
2 years ago
Sukun
c738a48d02
autonat: don't use autonat for address discovery ( #2148 )
* dont use autonat for address discovery
* dont increase timeout
2 years ago
Marten Seemann
31093195b5
chore: update webtransport-go to v0.5.2 ( #2149 )
2 years ago
Sukun
f421d0687a
swarm metrics: fix connection direction ( #2147 )
2 years ago
Marco Munizaga
11e26dfc38
connmgr: Use eventually equal helper in connmgr tests ( #2128 )
* Use eventually equal helper in connmgr tests
* Add logging
2 years ago
Marten Seemann
581a015412
swarm: emit PeerConnectedness event from swarm instead of from hosts ( #1574 )
* pass an event bus to the swarm constructor
* make the eventbus parameter a required swarm constructor parameter
* emit Connectedness notifications from the swarm
* remove peer connectedness watchers from hosts
* swarm: emit connectedness events when holding the mutex
2 years ago
Marten Seemann
c1cfe6c16e
relay: initialize the ASN util when starting the service ( #2143 )
* relay: initialize the ASN util when starting the service
* Revert "Fix flaky TestMetricsNoAllocNoCover test (#2142 )"
This reverts commit cbcdd79084
.
2 years ago
Marco Munizaga
cbcdd79084
Fix flaky TestMetricsNoAllocNoCover test ( #2142 )
2 years ago
Marco Munizaga
100ae2539b
identify: Bump timeouts/sleep in tests ( #2135 )
* identify: Bump timeouts/sleep in tests
* Update p2p/protocol/identify/id.go
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Marco Munizaga
704321763e
Add sleep to fix flaky test ( #2129 )
2 years ago