set non-blocking for socket