Change from LinkedList to LinkedBlockingDeque buffer in Server class. Working.