and conn->sd is nonblocking socket. so write can be failed.