Code Monkey home page Code Monkey logo

Comments (1)

thom311 avatar thom311 commented on August 19, 2024

1.) yes, the documentation is wrong. It's fixed now: 3dd2a0f

The behavior was changed with version 3.2.22: 375a629

See for example how NetworkManager handles this.

2.)

In case where socket is non-blocking and recvmsg() returns 0 (this happens when we get EPOLLERR on that soket), do libnl APIs inform caller when other end closes connection i.e when recvmsg() inside nl_recv return 0 ?
libnl does not seem to have a way to let app know about this case.

How do you mean "inform"? No, nl_recv() is only a wrapper around recv. epoll tells you about the state of the file descriptor and whether you can read from it. See the manual for recv().

3.)

Why am i getting EPOLLERR in epoll_wait() on netlink socket ? is this because other side of netlink ie kernel side closed connection ?
even if kernel side closed connection why non-stop repeated EPOLLERR s on netlink sockets ?

It is a question about how epoll works with netlink sockets. I don't know the details.

from libnl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.