Skip to content

Commit

Permalink
Remove DSL version comments, note fork_worker as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuay03 committed Feb 2, 2025
1 parent 08f9c40 commit 313c562
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/puma/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,6 @@ def state_path(path)
# @example
# state_permission 0600
#
# @version 5.0.0
#
def state_permission(permission)
@options[:state_permission] = permission
end
Expand Down Expand Up @@ -851,8 +849,6 @@ def on_stopped(&block)
# 3.times {GC.start}
# end
#
# @version 5.0.0
#
def on_refork(key = nil, &block)
warn_if_in_single_mode('on_refork')

Expand Down Expand Up @@ -1194,8 +1190,6 @@ def shutdown_debug(val=true)
# @see Puma::Server#handle_servers
# @see Puma::ThreadPool#wait_for_less_busy_worker
#
# @version 5.0.0
#
def wait_for_less_busy_worker(val=0.005)
@options[:wait_for_less_busy_worker] = val.to_f
end
Expand Down Expand Up @@ -1269,10 +1263,9 @@ def set_remote_address(val=:socket)
# A refork will automatically trigger once after the specified number of requests
# (default 1000), or pass 0 to disable auto refork.
#
# @note This is experimental.
# @note Cluster mode only.
#
# @version 5.0.0
#
def fork_worker(after_requests=1000)
@options[:fork_worker] = Integer(after_requests)
end
Expand Down

0 comments on commit 313c562

Please sign in to comment.