np1sec icon indicating copy to clipboard operation
np1sec copied to clipboard

Never ending disconnections

Open inetic opened this issue 9 years ago • 1 comments

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 avatar Jan 06 '17 11:01 inetic

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 
...

inetic avatar Jan 18 '17 13:01 inetic