On Monday, June 19, 2017 at 9:48:47 AM UTC+2, Ben Noordhuis wrote: > > On Sat, Jun 17, 2017 at 12:57 PM, romeo kalebic <romeo....@gmail.com > <javascript:>> wrote: > > Hi > > > > I'm using uv_poll to integrate MariaDB non blocking api to my > application. > > > > Now I'm testing some unusual situation. > > > > I try to make connection to address 8.8.8.8. > > After, about 63 sec (which I expect) uv_poll_cb is called with status: > -9 ( > > bad file descriptor ) and events set to 0. > > > > I was expecting that I will receive UV_DISCONNECT. > > > > Is this normal behavior ? > > What operating system is this on? The error code normally comes from > the OS, so if you get UV_EBADF, then presumably something closed the
file descriptor. > Hi Ben Thanks for response. I'm using libuv 1.12.0 on Centos 6.8 64 bit. Using strace and gdb I can prove that fd is not closed when callback is fired. Best Regards, Romeo -- 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 libuv+unsubscr...@googlegroups.com. To post to this group, send email to libuv@googlegroups.com. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.