Skip to content

ConnectionEstablished is called in an already established connection #274

Open
@majecty

Description

@majecty

Recently, discovery5 tests failed occasionally.
I read the failed test log and found that a connection established event is fired in the already existing connection. It made Foundry crash.

Why this error found nowadays

Recently when we implementing a peer DB, we added an assertion that the same peer is not added twice in the DB. The assertion made Foundry panic.
It seems that the duplicated connection established event bug is aged, but recently found by the assertion.

How should we fix it

The "connection established" event should not be called in an existing connection.

ErrorLog

2020_03_18T01_56_17_226Z.1.log
2020_03_18T01_56_17_226Z.4.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions