fix the unblock bug,that's if read() returns 0,it means the client has finished