thin 1.0.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of thin might be problematic. Click here for more details.
- data/CHANGELOG +26 -0
- data/example/async_app.ru +126 -0
- data/example/async_chat.ru +247 -0
- data/example/async_tailer.ru +100 -0
- data/example/config.ru +1 -1
- data/ext/thin_parser/parser.c +299 -1065
- data/ext/thin_parser/parser.rl +7 -9
- data/ext/thin_parser/thin.c +36 -36
- data/lib/rack/adapter/rails.rb +31 -23
- data/lib/thin.rb +2 -3
- data/lib/thin/command.rb +4 -3
- data/lib/thin/connection.rb +51 -15
- data/lib/thin/controllers/cluster.rb +7 -1
- data/lib/thin/controllers/controller.rb +1 -0
- data/lib/thin/request.rb +16 -2
- data/lib/thin/response.rb +4 -2
- data/lib/thin/runner.rb +1 -1
- data/lib/thin/version.rb +5 -5
- data/lib/thin_parser.bundle +0 -0
- data/spec/command_spec.rb +6 -1
- data/spec/controllers/cluster_spec.rb +33 -0
- data/spec/controllers/controller_spec.rb +11 -3
- data/spec/request/parser_spec.rb +28 -4
- data/spec/response_spec.rb +8 -0
- data/spec/runner_spec.rb +3 -2
- data/spec/server/pipelining_spec.rb +1 -0
- data/spec/server/stopping_spec.rb +13 -3
- data/spec/spec_helper.rb +2 -2
- data/tasks/gem.rake +9 -3
- metadata +9 -8
- data/COMMITTERS +0 -3
- data/lib/rack/handler/thin.rb +0 -18
data/COMMITTERS
DELETED
data/lib/rack/handler/thin.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
module Rack
|
2
|
-
module Handler
|
3
|
-
# Rack Handler stricly to be able to use Thin through the rackup command.
|
4
|
-
# To do so, simply require 'thin' in your Rack config file and run like this
|
5
|
-
#
|
6
|
-
# rackup --server thin
|
7
|
-
#
|
8
|
-
class Thin
|
9
|
-
def self.run(app, options={})
|
10
|
-
server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
|
11
|
-
options[:Port] || 8080,
|
12
|
-
app)
|
13
|
-
yield server if block_given?
|
14
|
-
server.start
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|