forgot to readFully when refactoring SocketHandler