Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue stopping netconf from shutting down cleanly #21

Closed
wants to merge 6 commits into from

Conversation

gcampbell512
Copy link
Contributor

The new exception shutdown strategy is to shut down the accept socket,
then close any open session sockets. As the worker threads handling the
open sessions close down they cleanup any remaining memory used by
the session. Hence on process termination, an additional explicit
cleanup routine for open sessions is not required.

gcampbell512 and others added 6 commits June 20, 2023 15:55
If a netconf rpc is active when the server is shut down, then depending
on timing, a crash can occur. The crash is due to the sessions and g_schema
being deleted before an active thread in the thread pool is completed.
An issue with the routine free_open_sessions has also been fixed.
Main improvement is to verify that the capability for :base:1.1
is present. If not found, we will end the session.
To support "with-defaults" in Netconf the handle_get function was updated
to be much closer to the way restconf works. Tests were added validate
the new "with-defaults" functionality based on Appendix A RFC6243.
The new exception shutdown strategy is to shut down the accept socket,
then close any open session sockets. As the worker threads handling the
open sessions close down they cleanup any remaining memory used by
the session. Hence on process termination, an additional explicit
cleanup routine for open sessions is not required.
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