Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

oblique/libp2p-issue-5442

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a reproduction of libp2p/rust-libp2p#5442.

Components

  • bad-peer - This accepts libp2p WebTransport connections but misbehaves on sub-stream allocation. This make libp2p-ping's ConnectionHandler to be created but then receive a ConnectionEvent::DialUpgradeError.
  • isse-5442 - This is the reproduction of the issue that is defined as a WASM test case.

How to run

Terminal No1:

cd bad-peer
go build .
./bad-peer

Terminal No2:

cd issue-5442
wasm-pack test --chrome

Browse 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 fetch error displayed in the page, then you forgot to start bad-peer.

screenshot

Fixes

About

Reproduction of libp2p/rust-libp2p#5442

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published