On Mon, Jan 22, 2018 at 10:57 AM, luke <[email protected]> wrote:
> Hi~
>
>
> After i dispatch a tcp stream handle to a child process, can i redispatch it
> again if the child process crashed or killed?
>
> and i mean recreate another child process then dispatch the old handle to
> it. The child process only handle io operations.
>
> I made some test, and found the tcp connection is not closed if the child
> process killed, so i wonder if i can redispatch it.
>
>
>
> Thanks.

It should be safe when your callback to uv_write2() is called with an
error code.

-- 
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 https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to