/libp2p-concurrent-ping

Bug in js-libp2p when concurrently pinging a list of addresses that includes at least one relay address

Primary LanguageJavaScript

libp2p-concurrent-ping

Reproduction of a bug in js-libp2p when concurrently pinging a list of addresses that includes at least one relay address.

Reproduction

  1. Install
nvm use
npm install
  1. Edit index.js: Add some p2p addresses in main() to ping. Be sure to add multiple addresses and include at least one /p2p-circuit relay address.

  2. Run

./index.js
  1. Results

Some of the pings in the CONCURRENT section should fail with stream errors.

All of the pings in the SEQUENTIAL section should succeed.