Ooooh, I see what you actually meant.

Sorry, the answer was incorrect. The current returned error code is EINVAL,
but it should actually be EBADF.

You surely could call these kind of functions on `uv_close()`ed handles.

Cheers,
Fedor.


On Tue, Jun 3, 2014 at 1:44 AM, Iñaki Baz Castillo <[email protected]> wrote:

> 2014-06-03 2:32 GMT+02:00 Fedor Indutny <[email protected]>:
> > I'd certainly not recommend you calling this on a closed socket, if by
> > closed you mean fd after `close()` call. The result of
> > `uv_tcp_getpeername()` may just return data of another connection.
> >
> > But yeah, EINVAL is the most common error code, I think.
>
>
> Clear. Now I just call that function on active handlers.
>
> Thanks a lot.
>
> --
> Iñaki Baz Castillo
> <[email protected]>
>
> --
> 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.
>

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