Modify SocketStream for Blocking issue