This repository is a reproduction of libp2p/rust-libp2p#5442.
- bad-peer - This accepts libp2p WebTransport connections but misbehaves
on sub-stream allocation. This make
libp2p-ping'sConnectionHandlerto be created but then receive aConnectionEvent::DialUpgradeError. - isse-5442 - This is the reproduction of the issue that is defined as a WASM test case.
Terminal No1:
cd bad-peer
go build .
./bad-peerTerminal No2:
cd issue-5442
wasm-pack test --chromeBrowse to the URL that is printed by the wasm-pack. If the output of the page
is stuck on running 1 test then the bug was reproduced. You can open browser's
console to view the crash.
NOTE: If you get
Failed to fetcherror displayed in the page, then you forgot to startbad-peer.
- Proper fix: async-rs/futures-timer#74.
You can apply it by uncommenting
futures-timerline inissue-5442/Cargo.toml. - Workaround: libp2p/rust-libp2p#5447.
You can apply it by uncommenting
libp2pline inissue-5442/Cargo.toml.