PlayPen / playpen-core

Server management and load balancing framework
http://playpen.io
MIT License
33 stars 7 forks source link

Using a wrong UUID and key timeouts all operations #13

Closed hugmanrique closed 6 years ago

hugmanrique commented 6 years ago

Instead of timing out all the operations, I think a proper error message would be better.

Steps to reproduce:

redxdev commented 6 years ago

I've updated the network coordinator + client logic a bit. The network coordinator will now shoot back an invalid message before closing the connection as an indication to the client that something is wrong (this is the only way to do so without a protocol change, which I'm not keen on doing at the moment).

The client will also now display a message when it receives something invalid, though it still won't exit until timeout with some commands. I'll be working on this next.

redxdev commented 6 years ago

cli commands should no longer wait if the connection is closed due to an invalid uuid/key. The fix requires updates to both network coordinators and the cli.

hugmanrique commented 6 years ago

Thank you for the fast fix! 😀