Skip to content

OnPeerEvicted happens immediately after connection, disregarding timeout #299

@delp

Description

@delp

If I run the chat example multiple times on the same machine, the chat clients are able to find one another.

If I run the chat client on two different machines on my network, the client connects and then immediately fails out. I tried to change the timeout from 3 seconds to much larger, but the evicted event is immediate and not related to the timeout.

From the machine trying to connect:

Your ID is :46097(e60bd758). Type '/discover' to attempt to discover new peers, or '/peers' to list out all peers you are connected to.
Learned about a new peer :38469(ea91a207).
Forgotten a peer :38469(ea91a207).
Did not discover any peers.```

The machine receiving the connection retains memory of the new peer however:

Learned about a new peer :46097(e60bd758).
/peers
You know 1 peer(s): [:46097(e60bd758)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions