Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Add possibility to not register shutdown hook in NioClient #358

Closed

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?

Activity

  1. ibauersachs commented on Dec 6, 2024

    @ibauersachs
    Member

    Yes, this can be added. Would you mind creating a PR?

  2. SvenssonWeb commented on Dec 6, 2024

    @SvenssonWeb
    ContributorAuthor

    I can try modeling it after existing system properties flags in the code base.

  3. added this to the v3.6.3 milestone on Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions