Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peers and routers can connect to themselves #1508

Open
fuzzypixelz opened this issue Oct 4, 2024 · 0 comments
Open

Peers and routers can connect to themselves #1508

fuzzypixelz opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fuzzypixelz
Copy link
Member

Describe the bug

It's possible to configure a router or a peer to listen to and to connect to the same endpoint. This breaks pub/sub: all publications are received twice (except the first one for some reason?).

To reproduce

  1. Configure an peer or a router with connect/endpoints:["tcp/localhost:10000"] and listen/endpoints:["tcp/localhost:10000"]
  2. Start a subscriber on key-expression k
  3. Start a publisher on key-expression k with payloads 0, 1, 2, 3, ...

The subscriber will receive 0, 1, 1, 2, 2, 3, 3, ...

System info

@fuzzypixelz fuzzypixelz added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant