Skip to content

Commit

Permalink
use rack::timout
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Braun committed Feb 7, 2012
1 parent b249959 commit dfbaab3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
@@ -1,4 +1,5 @@
source :rubygems

gem "sinatra"
gem "rack-timeout"
gem "nokogiri"
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -5,6 +5,7 @@ GEM
rack (1.4.1)
rack-protection (1.2.0)
rack
rack-timeout (0.0.3)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
Expand All @@ -16,4 +17,5 @@ PLATFORMS

DEPENDENCIES
nokogiri
rack-timeout
sinatra
3 changes: 3 additions & 0 deletions config.ru
@@ -1,2 +1,5 @@
require "./app.rb"
require "rack/timeout"
use Rack::Timeout
Rack::Timeout.timeout = 5
run Sinatra::Application

0 comments on commit dfbaab3

Please sign in to comment.