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
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
Sukun
c738a48d02
autonat: don't use autonat for address discovery ( #2148 )
* dont use autonat for address discovery
* dont increase timeout
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
29785d22b3
basic_host: Fix flaky tests ( #2136 )
2 years ago
Marco Munizaga
e3a16dd2a9
swarm: Check context once more before dialing ( #2139 )
2 years ago
Sukun
f7bf9d85bb
identify: add more detailed metrics ( #2126 )
* add identify metrics
metrics added:
address count
protocol count
peer push support
* address review changes
* update dashboards
2 years ago
Marco Munizaga
b74205d265
autorelay: refactor relay finder and start autorelay after identify ( #2120 )
* Refactor relay_finder and start autorelay after identify
* Clock fork
* Remove multiple timers and use a single rate limiting chan for findNodes
* Remove clock fork
* Rename
* Use scheduledWork.nextAllowedCallToPeerSource.Add(rf.conf.minInterval)
* Fix flaky test that relied on time
2 years ago
Marco Munizaga
640632419e
don't use the time value from the time.Ticker channel ( #2127 )
2 years ago
Marco Munizaga
90aedbddaa
Wrap conn with metrics ( #2131 )
2 years ago
Marco Munizaga
cb452294d5
circuitv2: Update proto files to proto3 ( #2121 )
2 years ago
Marco Munizaga
92492262a7
swarm: remove parallel tests from swarm tests ( #2130 )
2 years ago
Marten Seemann
90c99c3a7f
circuitv2: add a relay option to disable limits ( #2125 )
2 years ago
Marco Munizaga
a8b1d51cb4
quic: fix stalled virtual listener ( #2122 )
* quic: Fix stalled listener
* Undo time fix
* Move check inside case
2 years ago
Sukun
b2f119901f
swarm: add early muxer selection to swarm metrics ( #2119 )
* add early muxer selection to swarm metrics
* add pie chart for current early muxer connections
2 years ago
Sukun
a491074d89
metrics: add options to disable metrics and to set Prometheus registerer ( #2116 )
* provided a WithRegisterer option for metrics
* provide a libp2p.Option to setup metrics
2 years ago
Sukun
d9004d21b4
swarm: add ip_version to metrics ( #2114 )
* add ip_version to swarm metrics
* use "unknown" as a default for the IP version
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Marco Munizaga
32f2f25529
Revert mistaken "Bump timeout"
This reverts commit f00c9507c3
.
2 years ago
Marco Munizaga
f00c9507c3
Bump timeout
2 years ago
Marten Seemann
cec8c6584b
remove all circuit v1 related code ( #2107 )
* autorelay: remove support for circuit v1 nodes
* circuitv2: remove v1 backwards compatibility
* remove circuitv1 implementation only used for testing
* remove circuitv1 protocol implementation
2 years ago
Marten Seemann
d686dbc79e
quic: don't send detailed error messages when closing connections ( #2112 )
2 years ago
Sukun
9f12163a3d
metrics: add no alloc metrics for eventbus, swarm, identify ( #2108 )
* add noalloc tests for identify, eventbus and swarm metrics
* add no cover buildtag
2 years ago
Prithvi Shahi
d42a06d1e6
chore: unify dashboard location ( #2110 )
2 years ago
Sukun
3dcb4b503d
autonat: add metrics ( #2086 )
* add autonat metrics
* add benchmarks
* use increase instead of sum by with rate in dashboard
* add interface assertion
* add no alloc test
* update dashboard
* autonat: minor dashboard tweaks
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago