From 49d8246c1fe3e7179f96485b2eb9c69fd37c6baf Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sun, 14 Jan 2024 17:32:17 +0900 Subject: [PATCH] chore: change Puma's default max threads [skip ci] --- docs/usage.md | 2 +- lib/mihari/commands/web.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 8cba9ccd..3450ddfc 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -130,7 +130,7 @@ Options: [--host=HOST] # Hostname to listen on # Default: localhost [--threads=THREADS] # min:max threads to use - # Default: 0:5 + # Default: 0:3 [--verbose], [--no-verbose] # Don't report each request # Default: false [--worker-timeout=N] # Worker timeout value (in seconds) diff --git a/lib/mihari/commands/web.rb b/lib/mihari/commands/web.rb index 4da4de3c..973deb35 100644 --- a/lib/mihari/commands/web.rb +++ b/lib/mihari/commands/web.rb @@ -12,7 +12,7 @@ def included(thor) desc "web", "Start the web app" method_option :port, type: :numeric, default: 9292, desc: "Port to listen on" method_option :host, type: :string, default: "localhost", desc: "Hostname to listen on" - method_option :threads, type: :string, default: "0:5", desc: "min:max threads to use" + method_option :threads, type: :string, default: "0:3", desc: "min:max threads to use" method_option :verbose, type: :boolean, default: false, desc: "Don't report each request" method_option :worker_timeout, type: :numeric, default: 60, desc: "Worker timeout value (in seconds)" method_option :open, type: :boolean, default: true, desc: "Whether to open the app in browser or not"