Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Encountering a single node starts multiple CLAs #18

Open
CryptoCopter opened this issue Sep 12, 2019 · 4 comments
Open

Encountering a single node starts multiple CLAs #18

CryptoCopter opened this issue Sep 12, 2019 · 4 comments

Comments

@CryptoCopter
Copy link
Member

When starting two instances of dtnd on the same machine, it produces the following output:

INFO[15:50:31.702] Started DiscoveryService                      interval=2 ipv4=true ipv6=false message="[DiscoveryMessage(MTCP,dtn://node-2/,35038)]"
INFO[15:50:32.603] Started CLA                                   cla="mtcp://10.0.1.225:35037"
INFO[15:50:32.604] Started CLA                                   cla="mtcp://10.0.1.225:35037"
INFO[15:50:32.605] Started CLA                                   cla="mtcp://10.0.1.225:35037"
INFO[15:50:32.605] Started CLA                                   cla="mtcp://10.0.1.225:35037"

The routing ReportPeerAppeared hook also gets called multiple time for this single encounter.

@oxzi
Copy link
Member

oxzi commented Sep 13, 2019

Thanks for reporting this issue. Could you please post your configurations and clarify which node's log this is?

@CryptoCopter
Copy link
Member Author

both nodes have largely the same config, just with different node names and network ports

[core]
store = "store_2"
node-id = "dtn:node-2"

[logging]
level = "info"
report-caller = false
format = "text"

[discovery]
ipv4 = true
interval = 2

[simple-rest]
node = "dtn:node-2"
listen = "127.0.0.1:8081"

[[listen]]
protocol = "mtcp"
endpoint = ":35038"

[routing]
algorithm = "epidemic"

@CryptoCopter
Copy link
Member Author

I guess it is just my machine that behaved weirdly...

@oxzi
Copy link
Member

oxzi commented Oct 3, 2019

However, this still seems to be a bug. I will reopen this issue and try to investigate it later.

@oxzi oxzi reopened this Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants