On Fri, May 9, 2014 at 8:12 PM, Ramesh Rayaprolu
<[email protected]> wrote:
> Hi Ben,
>
> Thanks for the quick reply. I will file an issue.
>
> However, a followup question:
>
> So, to counter such issues, can I use uv_ref() and uv_unref() for the
> "uv_fs_req" object and then make sure that it is unref()'ed when NFS is hung
> (as soon as I trigger my "timeout" callback) ?
>
> Do you think that helps ? Or, do you think the unref() would not help
> because the actual I/O thread is already running ?
>
> Thanks and Best Regards,
> Ramesh

I'm afraid that won't help because uv_ref() and uv_unref() are for
handle types only.  uv_fs_t is a request type.

It should in theory be possible to make uv_cancel() work for uv_fs_t
requests but the implementation details are quite hairy.

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to