class Puma::ServerPluginControl
settings without direct access to the server’s internal state.
allowing plugins to safely modify server configuration and thread pool
This class acts as a facade between plugins and the Puma server,
interact with and manage server settings dynamically.
ServerPluginControl provides a control interface for server plugins to
def initialize(server)
def initialize(server) @server = server end
def max_threads
def max_threads @server.max_threads end
def min_threads
def min_threads @server.min_threads end
def update_thread_pool_min_max(min: max_threads, max: min_threads)
- See: Puma::Server#update_thread_pool_min_max -
def update_thread_pool_min_max(min: max_threads, max: min_threads) @server.update_thread_pool_min_max(min: min, max: max) end