Skip to content

Connection drop causes gossipsub to stop working #658

@jacobheun

Description

@jacobheun
  • Version: 0.28.0
  • Platform: Node.js and Browser
  • Subsystem: Gossipsub/Pubsub

Type: Bug

Severity: High

Description:

I was updated the Chat example at https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat to 0.28.x. When a Node and browser instance are connected they are able to communicate over gossipsub just fine. When the browser page is reloaded, pubsub no longer functions. I think this may be related to existing peers not being updated when they drop and reconnect. If another peer joins, pubsub functions again (which may just be the peer acting as a message router).

Steps to reproduce the error:

  1. Run the bootsrap node https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat/nodejs/bootstrap
  2. Run the final chapter browser node https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat/browser/08-End
  3. Send messages, it should work
  4. Refresh the browser page
  5. Try to send a message, it should fail

Metadata

Metadata

Assignees

Labels

P0Critical: Tackled by core team ASAPexp/expertHaving worked on the specific codebase is importantkind/bugA bug in existing code (including security flaws)status/in-progressIn progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions