Skip to content

sdk/js: cite the js-libp2p issues behind the relay workarounds - #543

Merged
aojea merged 1 commit into
google:mainfrom
aojea:sdk-js-upstream-issues
Sep 29, 2026
Merged

aojea merged 1 commit into
google:mainfrom
aojea:sdk-js-upstream-issues

Conversation

@aojea

@aojea aojea commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Comments and README only.

listenThroughRelay reaches components.transportManager because js-libp2p has no public way to listen on an address after start(); keepRelay reserves again because a static relay reservation is not re-established after the connection dropped. Both are filed upstream:

This names them where the code works around them, as the Python SDK does for py-libp2p#1549 and #1550, so that an upstream fix can be matched to the code it makes unnecessary.

listenThroughRelay reaches the transport manager because js-libp2p has no
public way to listen on an address after start(), and keepRelay reserves
again because a static relay reservation is not re-established after the
connection dropped. Both are filed upstream: libp2p/js-libp2p#3645 and
libp2p/js-libp2p#3601. Name them where the code works around them, as the
Python SDK does for py-libp2p, so that an upstream fix can be matched to
the code it makes unnecessary.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation in sdk/README.md and adds comments in sdk/js/src/host.ts and sdk/js/src/session.ts to reference upstream libp2p issues (libp2p/js-libp2p#3645 and libp2p/js-libp2p#3601) related to relay slot reservation and listener behavior. There are no review comments, and I have no feedback to provide.

@aojea
aojea merged commit 6bed21b into google:main Sep 29, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant