You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add possibility to not register shutdown hook in NioClient #358
I'm currently facing an issue where I have queued requests to be sent via this library when the Java process receives a shutdown signal (SIGTERM).
When trying to complete the queued requests the DNS Client has already terminated it's internals because of the registered ShutdownHook.
Could we add flag or setting to not register a ShutdownHook and instead place the burden on the consumer of DNSJava to clean up correctly?
Activity
ibauersachs commentedon Dec 6, 2024
Yes, this can be added. Would you mind creating a PR?
SvenssonWeb commentedon Dec 6, 2024
I can try modeling it after existing system properties flags in the code base.
Optionally disable ShutdownHook in NioClient
Optionally disable ShutdownHook in NioClient