Skip to content

Commit

Permalink
Shorter Sinatra::Runner timeout
Browse files Browse the repository at this point in the history
It should never take near 30 seconds for a server to be alive.
  • Loading branch information
dentarg committed Dec 29, 2023
1 parent cadbedd commit 0e43702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinatra-contrib/lib/sinatra/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def command
"bundle exec ruby #{app_file} -p #{port} -e production"
end

def ping(timeout = 30)
def ping(timeout = 10)
loop do
return if alive?

Expand Down

0 comments on commit 0e43702

Please sign in to comment.