if read message error, it will cause client hang