On Monday, July 24, 2017 at 10:37:44 AM UTC-7, Ben Noordhuis wrote: 
>
> > It's not clear why uv_close would be invoking on_connect tho. 
>
> Libuv always invokes outstanding callbacks on close, in order to let 
> the user clean up. 
>
> If you close a stream handle, it invokes pending connect, write and 
> shutdown callbacks with status == UV_ECANCELED. 
>

Okay, that makes sense; as long as it is being invoked by an explicit 
uv_close, I can fix my code to handle that case properly.

Thank you.

-- Charles
 

-- 
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