made server reading multiple lines when receiving a message