sorry, that' s my mistake, i should use std::shared_ptr to hold the uv_tcp_t struct !
I fixed it and test again, it works! Thank you again. 在 2018年1月22日星期一 UTC+8下午7:25:35,luke写道: > > 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. > > > > -- 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.
