8000 Add possibility to not register shutdown hook in NioClient · Issue #358 · dnsjava/dnsjava · GitHub
[go: up one dir, main page]

Skip to content
Add possibility to not register shutdown hook in NioClient #358
Closed
@SvenssonWeb

Description

@SvenssonWeb

Runtime.getRuntime().addShutdownHook(closeThread);

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0