uv_getpeername strange behaviour

14 views
Skip to first unread message

zyxwvu S

unread,
Apr 1, 2020, 6:32:54 AM4/1/20
to libuv
Hi. I've encountered a strange behaviour from uv_getpeername on Linux 4.4.0.

uv_getpeername returns ENOTCONN randomly on freshly accepted sockets. I have coredump and coredump indicates that io_watcher.fd is 15 and flags include UV_HANDLE_BOUND, UV_HANDLE_READABLE or UV_HANDLE_WRITABLE. It seems the handle is in good condition.

This is rare (about once per two days).

What can I do to dig into it?

Thanks.

Ben Noordhuis

unread,
Apr 1, 2020, 8:46:44 AM4/1/20
to li...@googlegroups.com
What you're describing is normal: the peer connected and immediately
disconnected again. If you tried to read, you'd probably also get
ENOTCONN or ECONNRESET.
Reply all
Reply to author
Forward
0 new messages