Permalink
Browse files

first commit

  • Loading branch information...
1 parent f164a0f commit 53cb564fb1a8bb982f9d708bca3784b7fe678ca6 @francescoagati committed Dec 9, 2010
Showing with 31 additions and 0 deletions.
  1. +23 −0 config.ru
  2. +8 −0 rainbows.conf
View
@@ -0,0 +1,23 @@
+require 'rainbows'
+require 'eventmachine'
+require 'sinatra/async'
+require 'em-http-request'
+
+require 'open-uri'
+
+class AsyncTest < Sinatra::Base
+ register Sinatra::Async
+
+ enable :show_exceptions
+
+ get '/test_sync' do
+ "prova"
+ end
+
+ aget '/test_async' do
+ body { ["prova async"] }
+ end
+
+end
+
+run AsyncTest.new
View
@@ -0,0 +1,8 @@
+worker_processes 4
+
+Rainbows! do
+ use :EventMachine
+ worker_connections 400
+ client_max_body_size nil
+ keepalive_timeout 0
+end

0 comments on commit 53cb564

Please sign in to comment.