Skip to content

bug: websocket does not reconnect on disconnection under certain conditions #766

@GabrielePicco

Description

@GabrielePicco

Report

Description

Websocket does not reconnect on disconnection. Under certain conditions, the ChainPubsubActor does not reconnect unless the process/validator is restarted.

Proposed solution

  1. Implement a heartbeat (e.g. ping messages) to detect whether the connection is healthy.
  2. Retry reconnection with exponential backoff and harden the reconnection logic.
  3. If the connection is not healthy, exclude it from submux redundancy.

Commit / version

master

Environment

No response

Metadata

Metadata

Assignees

Labels

P1High prioritybugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions