puma 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puma might be problematic. Click here for more details.

@@ -1,9 +1,13 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ bouncy-castle-java (1.5.0146.1)
4
5
  hoe (3.0.7)
5
6
  rake (~> 0.8)
7
+ jruby-openssl (0.7.7)
8
+ bouncy-castle-java (>= 1.5.0146.1)
6
9
  json (1.7.4)
10
+ json (1.7.4-java)
7
11
  rack (1.4.1)
8
12
  rake (0.9.2.2)
9
13
  rake-compiler (0.8.1)
@@ -12,6 +16,7 @@ GEM
12
16
  json (~> 1.4)
13
17
 
14
18
  PLATFORMS
19
+ java
15
20
  ruby
16
21
 
17
22
  DEPENDENCIES
@@ -1,3 +1,9 @@
1
+ === 1.6.2 / 2012-08-27
2
+
3
+ * 1 bug fix:
4
+ * Rescue StandardError instead of IOError to handle SystemCallErrors
5
+ as well as other application exceptions inside the reactor.
6
+
1
7
  === 1.6.1 / 2012-07-23
2
8
 
3
9
  * 1 packaging bug fixed:
data/README.md CHANGED
@@ -122,6 +122,10 @@ If you start puma with `-S some/path` then you can pass that same path to the `p
122
122
 
123
123
  will cause the server to perform a restart. `pumactl` is a simple CLI frontend to the control/status app described above.
124
124
 
125
+ ## Managing multiple Pumas / init.d script
126
+
127
+ If you want an easy way to manage multiple scripts at once check [tools/jungle](https://github.com/puma/puma/tree/master/tools/jungle) for an init.d script.
128
+
125
129
  ## License
126
130
 
127
131
  Puma is copyright 2011 Evan Phoenix and contributors. It is licensed under the BSD license. See the include LICENSE file for details.
@@ -25,7 +25,7 @@ module Puma
25
25
  # too taxing on performance.
26
26
  module Const
27
27
 
28
- PUMA_VERSION = VERSION = "1.6.1".freeze
28
+ PUMA_VERSION = VERSION = "1.6.2".freeze
29
29
 
30
30
  # The default number of seconds for another request within a persistent
31
31
  # session.
@@ -12,10 +12,12 @@ module Puma
12
12
  @input = []
13
13
  @sleep_for = DefaultSleepFor
14
14
  @timeouts = []
15
+
16
+ @sockets = [@ready]
15
17
  end
16
18
 
17
19
  def run
18
- sockets = [@ready]
20
+ sockets = @sockets
19
21
 
20
22
  while true
21
23
  ready = IO.select sockets, nil, nil, @sleep_for
@@ -53,7 +55,7 @@ module Puma
53
55
 
54
56
  @events.parse_error @server, c.env, e
55
57
 
56
- rescue IOError => e
58
+ rescue StandardError => e
57
59
  c.close
58
60
  sockets.delete c
59
61
  end
@@ -79,12 +81,14 @@ module Puma
79
81
 
80
82
  def run_in_thread
81
83
  @thread = Thread.new {
82
- begin
83
- run
84
- rescue Exception => e
85
- puts "MAJOR ERROR DETECTED"
86
- p e
87
- puts e.backtrace
84
+ while true
85
+ begin
86
+ run
87
+ break
88
+ rescue StandardError => e
89
+ STDERR.puts "Error in reactor loop escaped: #{e.message} (#{e.class})"
90
+ puts e.backtrace
91
+ end
88
92
  end
89
93
  }
90
94
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "puma"
5
- s.version = "1.6.1"
5
+ s.version = "1.6.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Phoenix"]
9
- s.date = "2012-08-12"
9
+ s.date = "2012-08-27"
10
10
  s.description = "Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications. It can be used with any application that supports Rack, and is considered the replacement for Webrick and Mongrel. It was designed to be the go-to server for [Rubinius](http://rubini.us), but also works well with JRuby and MRI. Puma is intended for use in both development and production environments.\n\nUnder the hood, Puma processes requests using a C-optimized Ragel extension (inherited from Mongrel) that provides fast, accurate HTTP 1.1 protocol parsing in a portable way. Puma then serves the request in a thread from an internal thread pool (which you can control). This allows Puma to provide real concurrency for your web application!\n\nWith Rubinius 2.0, Puma will utilize all cores on your CPU with real threads, meaning you won't have to spawn multiple processes to increase throughput. You can expect to see a similar benefit from JRuby.\n\nOn MRI, there is a Global Interpreter Lock (GIL) that ensures only one thread can be run at a time. But if you're doing a lot of blocking IO (such as HTTP calls to external APIs like Twitter), Puma still improves MRI's throughput by allowing blocking IO to be run concurrently (EventMachine-based servers such as Thin turn off this ability, requiring you to use special libraries). Your mileage may vary. In order to get the best throughput, it is highly recommended that you use a Ruby implementation with real threads like [Rubinius](http://rubini.us) or [JRuby](http://jruby.org)."
11
11
  s.email = ["evan@phx.io"]
12
12
  s.executables = ["puma", "pumactl"]
metadata CHANGED
@@ -1,116 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: puma
3
- version: !ruby/object:Gem::Version
4
- version: 1.6.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 6
9
+ - 2
10
+ version: 1.6.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Evan Phoenix
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-08-12 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-08-27 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rack
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.2'
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.2'
30
- - !ruby/object:Gem::Dependency
27
+ - !ruby/object:Gem::Version
28
+ hash: 11
29
+ segments:
30
+ - 1
31
+ - 2
32
+ version: "1.2"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
31
36
  name: rdoc
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: '3.10'
38
- type: :development
39
37
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '3.10'
46
- - !ruby/object:Gem::Dependency
47
- name: rake-compiler
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
49
39
  none: false
50
- requirements:
40
+ requirements:
51
41
  - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.8.0
42
+ - !ruby/object:Gem::Version
43
+ hash: 19
44
+ segments:
45
+ - 3
46
+ - 10
47
+ version: "3.10"
54
48
  type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: rake-compiler
55
52
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
57
54
  none: false
58
- requirements:
55
+ requirements:
59
56
  - - ~>
60
- - !ruby/object:Gem::Version
57
+ - !ruby/object:Gem::Version
58
+ hash: 63
59
+ segments:
60
+ - 0
61
+ - 8
62
+ - 0
61
63
  version: 0.8.0
62
- - !ruby/object:Gem::Dependency
63
- name: hoe
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '3.0'
70
64
  type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: hoe
71
68
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
69
+ requirement: &id004 !ruby/object:Gem::Requirement
73
70
  none: false
74
- requirements:
71
+ requirements:
75
72
  - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '3.0'
78
- description: ! 'Puma is a simple, fast, and highly concurrent HTTP 1.1 server for
79
- Ruby web applications. It can be used with any application that supports Rack, and
80
- is considered the replacement for Webrick and Mongrel. It was designed to be the
81
- go-to server for [Rubinius](http://rubini.us), but also works well with JRuby and
82
- MRI. Puma is intended for use in both development and production environments.
83
-
84
-
85
- Under the hood, Puma processes requests using a C-optimized Ragel extension (inherited
86
- from Mongrel) that provides fast, accurate HTTP 1.1 protocol parsing in a portable
87
- way. Puma then serves the request in a thread from an internal thread pool (which
88
- you can control). This allows Puma to provide real concurrency for your web application!
89
-
90
-
91
- With Rubinius 2.0, Puma will utilize all cores on your CPU with real threads, meaning
92
- you won''t have to spawn multiple processes to increase throughput. You can expect
93
- to see a similar benefit from JRuby.
94
-
95
-
96
- On MRI, there is a Global Interpreter Lock (GIL) that ensures only one thread can
97
- be run at a time. But if you''re doing a lot of blocking IO (such as HTTP calls
98
- to external APIs like Twitter), Puma still improves MRI''s throughput by allowing
99
- blocking IO to be run concurrently (EventMachine-based servers such as Thin turn
100
- off this ability, requiring you to use special libraries). Your mileage may vary.
101
- In order to get the best throughput, it is highly recommended that you use a Ruby
102
- implementation with real threads like [Rubinius](http://rubini.us) or [JRuby](http://jruby.org).'
103
- email:
73
+ - !ruby/object:Gem::Version
74
+ hash: 7
75
+ segments:
76
+ - 3
77
+ - 0
78
+ version: "3.0"
79
+ type: :development
80
+ version_requirements: *id004
81
+ description: |-
82
+ Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications. It can be used with any application that supports Rack, and is considered the replacement for Webrick and Mongrel. It was designed to be the go-to server for [Rubinius](http://rubini.us), but also works well with JRuby and MRI. Puma is intended for use in both development and production environments.
83
+
84
+ Under the hood, Puma processes requests using a C-optimized Ragel extension (inherited from Mongrel) that provides fast, accurate HTTP 1.1 protocol parsing in a portable way. Puma then serves the request in a thread from an internal thread pool (which you can control). This allows Puma to provide real concurrency for your web application!
85
+
86
+ With Rubinius 2.0, Puma will utilize all cores on your CPU with real threads, meaning you won't have to spawn multiple processes to increase throughput. You can expect to see a similar benefit from JRuby.
87
+
88
+ On MRI, there is a Global Interpreter Lock (GIL) that ensures only one thread can be run at a time. But if you're doing a lot of blocking IO (such as HTTP calls to external APIs like Twitter), Puma still improves MRI's throughput by allowing blocking IO to be run concurrently (EventMachine-based servers such as Thin turn off this ability, requiring you to use special libraries). Your mileage may vary. In order to get the best throughput, it is highly recommended that you use a Ruby implementation with real threads like [Rubinius](http://rubini.us) or [JRuby](http://jruby.org).
89
+ email:
104
90
  - evan@phx.io
105
- executables:
91
+ executables:
106
92
  - puma
107
93
  - pumactl
108
- extensions:
94
+ extensions:
109
95
  - ext/puma_http11/extconf.rb
110
- extra_rdoc_files:
96
+ extra_rdoc_files:
111
97
  - History.txt
112
98
  - Manifest.txt
113
- files:
99
+ files:
114
100
  - COPYING
115
101
  - Gemfile
116
102
  - Gemfile.lock
@@ -186,32 +172,41 @@ files:
186
172
  - tools/trickletest.rb
187
173
  homepage: http://puma.io
188
174
  licenses: []
175
+
189
176
  post_install_message:
190
- rdoc_options:
177
+ rdoc_options:
191
178
  - --main
192
179
  - README.md
193
- require_paths:
180
+ require_paths:
194
181
  - lib
195
- required_ruby_version: !ruby/object:Gem::Requirement
182
+ required_ruby_version: !ruby/object:Gem::Requirement
196
183
  none: false
197
- requirements:
198
- - - ! '>='
199
- - !ruby/object:Gem::Version
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ hash: 57
188
+ segments:
189
+ - 1
190
+ - 8
191
+ - 7
200
192
  version: 1.8.7
201
- required_rubygems_version: !ruby/object:Gem::Requirement
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
194
  none: false
203
- requirements:
204
- - - ! '>='
205
- - !ruby/object:Gem::Version
206
- version: '0'
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ hash: 3
199
+ segments:
200
+ - 0
201
+ version: "0"
207
202
  requirements: []
203
+
208
204
  rubyforge_project: puma
209
205
  rubygems_version: 1.8.24
210
206
  signing_key:
211
207
  specification_version: 3
212
- summary: Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web
213
- applications
214
- test_files:
208
+ summary: Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications
209
+ test_files:
215
210
  - test/test_app_status.rb
216
211
  - test/test_cli.rb
217
212
  - test/test_config.rb