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

Never ending disconnections #42

Open
inetic opened this issue Jan 6, 2017 · 1 comment
Open

Never ending disconnections #42

inetic opened this issue Jan 6, 2017 · 1 comment

Comments

@inetic
Copy link
Member

inetic commented Jan 6, 2017

Happens when a new client connects to the server with a name already present on the server.

Say we have two clients Alice and Bob and they both log into the server with username "Charlie". First Alice joins the server. Then, when Bob joins, Alice receives RoomInterface::disconnect message infinitely many times.

@inetic
Copy link
Member Author

inetic commented Jan 18, 2017

Some debug output from the server and RoomInterface

Entering test case "test_duplicate_nick"
r0.room_ptr: 0x1f872b0
r1.room_ptr: 0x1f8ec40
r0.port: 33496
r1.port: 33498
Server received on port:33496 alice Hello reply:0 reply_to_username:
alice RoomInterface::disconnected room_ptr:0x1f8ec40
Server received on port:33498 alice Hello reply:0 reply_to_username:
Server received on port:33498 alice Quit 
alice RoomInterface::disconnected room_ptr:0x1f872b0
Server received on port:33496 alice Quit 
alice RoomInterface::disconnected room_ptr:0x1f8ec40
Server received on port:33498 alice Quit 
alice RoomInterface::disconnected room_ptr:0x1f872b0
Server received on port:33496 alice Quit 
alice RoomInterface::disconnected room_ptr:0x1f8ec40
Server received on port:33498 alice Quit 
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant