fixed deadlock if nonblocking option specifed and does not  supported