Skip to content

Commit

Permalink
Limit puma threads to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
azyzio authored Oct 12, 2024
1 parent bf27fcd commit b14f81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cypress-rails/server/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.create(app, port, host)
# If we just run the Puma Rack handler it installs signal handlers which prevent us from being able to interrupt tests.
# Therefore construct and run the Server instance ourselves.
# Rack::Handler::Puma.run(app, { Host: host, Port: port, Threads: "0:4", workers: 0, daemon: false }.merge(options))
default_options = {Host: host, Port: port, Threads: "0:4", workers: 0, daemon: false}
default_options = {Host: host, Port: port, Threads: "0:1", workers: 0, daemon: false}
options = default_options # .merge(options)

puma_rack_handler = defined?(Rackup::Handler::Puma) ? Rackup::Handler::Puma : Rack::Handler::Puma
Expand Down

0 comments on commit b14f81b

Please sign in to comment.