reusing genl sockets via libnl
Thomas Graf
tgraf at infradead.org
Mon Dec 7 10:34:32 EST 2009
On Sun, Nov 15, 2009 at 01:32:14PM -0600, Doug Maxey wrote:
> model. Is that a requirement?
>
> It would be really nice if there could be a long lived socket that
> could be
>
> 1) be reused for at least some subset of the commands, resetting what
> the expected command / response via nl_socket_modify_cb().
>
> 2) a single socket (or a few) that would be expected to last the
> lifetime of the application so a watcher could notice if the app
> dies and clean up the resource that were claimed by the app.
>
> Tried to set up such a socket, but it appears that -any- command after
> the first appears to never return anything other than no error on the
> operation. The callback is never invoked.
>
> Is this the expected behavior, or a powerpc bug? Where is the
> expected behavior documented?
Sockets are supposed to last for the entire lifetime of an application
and shall be reused as often as possible without closing and reopening
the socket. Any issues regarding this are clearly bugs.
More information about the libnl
mailing list