Hello
Thank you for this complex and easy to use library.
I have a question that may be simple.
I used the official example named CmdServer with small modifications - I added these lines in "public void handleCommand(ClientHandler handler, String command)" from class CmdCommandHandler
if(command.equals("test")) {
System.err.println("Sleeping....");
try {
Thread.sleep(20000);
} catch (InterruptedException ex) {
Logger.getLogger(CmdCommandHandler.class.getName()).log(Level.SEVERE, null, ex);
}
} else {
System.err.println("Not sleeping....");
}
So when client sends command "test" the current thread will sleep for 20 seconds simulating a slow command.
I was expecting for the server to accept new connection in these 20 seconds but is not. Concurency doesn't seems to work.
What is wrong with my test?
Thank you