Skip to content

Bounded keepalive threads #986

Open
Open

Description

@wylswz

KeepAlive currently extends Thread, which are relatively expensive to create and maintain.

Is it possible to manage all keepalives using one or just a few threads?

Originally posted by @wylswz in #985

I can try to implement one, and if that works well, I'll start a pull request. Let me create an issue from this.

Originally posted by @wylswz in #985 (reply in thread)

Activity

  1. wylswz commented on Feb 21, 2025

    @wylswz
    Author

    I'm planning to add a KeepAliveProvider implementation, that produces something equivalent to net.schmizz.keepalive.KeepAliveRunner. Instead of creating a new thread on start, it registers the KeepAlive object to a priority queue managed by configurable number of worker threads.

  2. added a commit that references this issue on Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions