You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes#1635 which causes the circuit relay to repeatedly connect
to a discovered relay. If the relay returns connection expiration in
seconds, we get a negative ttl when calculating
`expiration - new Date().getTime()`.
This caused the `addRelay` function to set the timeout at 0ms. This timeout
instantly triggers and calls `addRelay` recursively.
Spec update: libp2p/specs#531Fixes#1635 which causes the circuit relay to repeatedly connect
to a discovered relay. If the relay returns connection expiration in
seconds, we get a negative ttl when calculating
`expiration - new Date().getTime()`.
This caused the `addRelay` function to set the timeout at 0ms which
triggers instantly.
---------
Co-authored-by: achingbrain <alex@achingbrain.net>
Severity:
Description:
Steps to reproduce the error:
Instantiate the go relay with
GOLOG_LOG_LEVEL=debug go run main.go
. It should print out a websocket multiaddr.Instantiate the node process with
DEBUG=libp2p:circuit-relay:* node index.js
The node and go processes should keep logging a new circuit relay reservation.
The text was updated successfully, but these errors were encountered: