Skip to content

request/broadcast taking too long if slow/failing relay is present #170

@1-leo

Description

@1-leo

Issue:
If there is a slow/failing relay requests and broadcast can take really long (max timout time of 5s)

Proposal:

Implement register and deregister request on relay manager.

Flow:

1.) register request
2.) try to connect to relay
2.1.) on fail deregister and check if its the last request (EOSE)
3.) on connect (or already connected) send out the request

Its important to register before connecting, so there is no race condition with a fast(already connected) relay and a slow one.
The incoming EOSE from fast relay might complete before connecting to a slow relay succeeds =>race condition

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions