fix thread blocked in read socket
- unblock socket by shutdownInput