Skip to content

Use ln2 poll session fixes - #1828

Merged
michalvasko merged 3 commits into
develfrom
ln2-session-ownership
Sep 11, 2026
Merged

Use ln2 poll session fixes#1828
michalvasko merged 3 commits into
develfrom
ln2-session-ownership

Conversation

@Roytak

@Roytak Roytak commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

nc_ps_poll() now removes a terminated session from the pollsession and
hands its ownership over to the caller, which the server relies on, so
require libnetconf2 4.6.0.

Also drop the thread count check. MAX_PSPOLL_THREAD_COUNT is gone from
libnetconf2, its pollsession queue grows on demand instead, so there is
no limit left to check against and the pkg-config variable holding it
is not exported anymore either.
A session reported as terminated by nc_ps_poll() is no longer in the
pollsession, the poll removed it and handed its ownership over. So
nc_ps_del_session() on it fails now and an error was logged for every
session that ended normally.

np2srv_del_session_cb() is called both for such a session and, on
server shutdown, for one that is still in the pollsession and has to be
removed from it. Only the caller knows which it is, so it tells the
callback with a new parameter.
@michalvasko
michalvasko merged commit 9e36426 into devel Sep 11, 2026
7 checks passed
@michalvasko
michalvasko deleted the ln2-session-ownership branch September 11, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants