puma 1.0.0 → 1.1.0

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.

@@ -8,16 +8,7 @@ Rakefile
8
8
  TODO
9
9
  bin/puma
10
10
  bin/pumactl
11
- examples/CA/cacert.pem
12
- examples/CA/newcerts/cert_1.pem
13
- examples/CA/newcerts/cert_2.pem
14
- examples/CA/private/cakeypair.pem
15
- examples/CA/serial
16
11
  examples/config.rb
17
- examples/puma/cert_puma.pem
18
- examples/puma/csr_puma.pem
19
- examples/puma/puma_keypair.pem
20
- examples/qc_config.rb
21
12
  ext/puma_http11/PumaHttp11Service.java
22
13
  ext/puma_http11/ext_help.h
23
14
  ext/puma_http11/extconf.rb
@@ -32,7 +23,6 @@ ext/puma_http11/puma_http11.c
32
23
  lib/puma.rb
33
24
  lib/puma/app/status.rb
34
25
  lib/puma/cli.rb
35
- lib/puma/compat.rb
36
26
  lib/puma/configuration.rb
37
27
  lib/puma/const.rb
38
28
  lib/puma/control_cli.rb
data/README.md CHANGED
@@ -77,6 +77,14 @@ Want to use UNIX Sockets instead of TCP (which can provide a 5-10% performance b
77
77
 
78
78
  $ puma -b unix:///var/run/puma.sock
79
79
 
80
+ If you need to change the permissions of the UNIX socket, just add a umask parameter:
81
+
82
+ $ puma -b 'unix:///var/run/puma.sock?umask=0777'
83
+
84
+ Need a bit of security? Use SSL sockets!
85
+
86
+ $ puma -b 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'
87
+
80
88
  ## License
81
89
 
82
90
  Puma is copyright 2011 Evan Phoenix and contributors. It is licensed under the BSD license. See the include LICENSE file for details.
@@ -243,7 +243,17 @@ module Puma
243
243
  log "* Listening on #{str}"
244
244
  path = "#{uri.host}#{uri.path}"
245
245
 
246
- server.add_unix_listener path
246
+ umask = nil
247
+
248
+ if uri.query
249
+ params = Rack::Utils.parse_query uri.query
250
+ if u = params['umask']
251
+ # Use Integer() to respect the 0 prefix as octal
252
+ umask = Integer(u)
253
+ end
254
+ end
255
+
256
+ server.add_unix_listener path, umask
247
257
  when "ssl"
248
258
  log "* Listening on #{str}"
249
259
  params = Rack::Utils.parse_query uri.query
@@ -75,7 +75,7 @@ module Puma
75
75
 
76
76
  PATH_INFO = 'PATH_INFO'.freeze
77
77
 
78
- PUMA_VERSION = VERSION = "1.0.0".freeze
78
+ PUMA_VERSION = VERSION = "1.1.0".freeze
79
79
 
80
80
  PUMA_TMP_BASE = "puma".freeze
81
81
 
@@ -54,6 +54,8 @@ module Puma
54
54
  @persistent_timeout = PERSISTENT_TIMEOUT
55
55
  @persistent_check, @persistent_wakeup = IO.pipe
56
56
 
57
+ @unix_paths = []
58
+
57
59
  @proto_env = {
58
60
  "rack.version".freeze => Rack::VERSION,
59
61
  "rack.errors".freeze => events.stderr,
@@ -121,8 +123,18 @@ module Puma
121
123
 
122
124
  # Tell the server to listen on +path+ as a UNIX domain socket.
123
125
  #
124
- def add_unix_listener(path)
125
- @ios << UNIXServer.new(path)
126
+ def add_unix_listener(path, umask=nil)
127
+ @unix_paths << path
128
+
129
+ # Let anyone connect by default
130
+ umask ||= 0
131
+
132
+ begin
133
+ old_mask = File.umask(umask)
134
+ @ios << UNIXServer.new(path)
135
+ ensure
136
+ File.umask old_mask
137
+ end
126
138
  end
127
139
 
128
140
  def backlog
@@ -176,6 +188,7 @@ module Puma
176
188
  graceful_shutdown if @status == :stop
177
189
  ensure
178
190
  @ios.each { |i| i.close }
191
+ @unix_paths.each { |i| File.unlink i }
179
192
  end
180
193
  end
181
194
 
@@ -2,22 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "puma"
5
- s.version = "1.0.0"
5
+ s.version = "0.9.5"
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-03-29"
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)."
9
+ s.date = "2012-03-03"
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"]
13
13
  s.extensions = ["ext/puma_http11/extconf.rb"]
14
14
  s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
15
- s.files = ["COPYING", "Gemfile", "History.txt", "LICENSE", "Manifest.txt", "README.md", "Rakefile", "TODO", "bin/puma", "bin/pumactl", "examples/CA/cacert.pem", "examples/CA/newcerts/cert_1.pem", "examples/CA/newcerts/cert_2.pem", "examples/CA/private/cakeypair.pem", "examples/CA/serial", "examples/config.rb", "examples/puma/cert_puma.pem", "examples/puma/csr_puma.pem", "examples/puma/puma_keypair.pem", "examples/qc_config.rb", "ext/puma_http11/PumaHttp11Service.java", "ext/puma_http11/ext_help.h", "ext/puma_http11/extconf.rb", "ext/puma_http11/http11_parser.c", "ext/puma_http11/http11_parser.h", "ext/puma_http11/http11_parser.java.rl", "ext/puma_http11/http11_parser.rl", "ext/puma_http11/http11_parser_common.rl", "ext/puma_http11/org/jruby/puma/Http11.java", "ext/puma_http11/org/jruby/puma/Http11Parser.java", "ext/puma_http11/puma_http11.c", "lib/puma.rb", "lib/puma/app/status.rb", "lib/puma/cli.rb", "lib/puma/compat.rb", "lib/puma/configuration.rb", "lib/puma/const.rb", "lib/puma/control_cli.rb", "lib/puma/events.rb", "lib/puma/jruby_restart.rb", "lib/puma/null_io.rb", "lib/puma/rack_patch.rb", "lib/puma/server.rb", "lib/puma/thread_pool.rb", "lib/rack/handler/puma.rb", "puma.gemspec", "test/ab_rs.rb", "test/config/app.rb", "test/hello.ru", "test/lobster.ru", "test/mime.yaml", "test/slow.ru", "test/test_app_status.rb", "test/test_cli.rb", "test/test_config.rb", "test/test_http10.rb", "test/test_http11.rb", "test/test_integration.rb", "test/test_persistent.rb", "test/test_rack_handler.rb", "test/test_rack_server.rb", "test/test_thread_pool.rb", "test/test_unix_socket.rb", "test/test_ws.rb", "test/testhelp.rb", "tools/trickletest.rb"]
15
+ s.files = ["COPYING", "Gemfile", "History.txt", "LICENSE", "Manifest.txt", "README.md", "Rakefile", "TODO", "bin/puma", "bin/pumactl", "examples/config.rb", "ext/puma_http11/PumaHttp11Service.java", "ext/puma_http11/ext_help.h", "ext/puma_http11/extconf.rb", "ext/puma_http11/http11_parser.c", "ext/puma_http11/http11_parser.h", "ext/puma_http11/http11_parser.java.rl", "ext/puma_http11/http11_parser.rl", "ext/puma_http11/http11_parser_common.rl", "ext/puma_http11/org/jruby/puma/Http11.java", "ext/puma_http11/org/jruby/puma/Http11Parser.java", "ext/puma_http11/puma_http11.c", "lib/puma.rb", "lib/puma/app/status.rb", "lib/puma/cli.rb", "lib/puma/configuration.rb", "lib/puma/const.rb", "lib/puma/control_cli.rb", "lib/puma/events.rb", "lib/puma/jruby_restart.rb", "lib/puma/null_io.rb", "lib/puma/rack_patch.rb", "lib/puma/server.rb", "lib/puma/thread_pool.rb", "lib/rack/handler/puma.rb", "puma.gemspec", "test/ab_rs.rb", "test/config/app.rb", "test/hello.ru", "test/lobster.ru", "test/mime.yaml", "test/slow.ru", "test/test_app_status.rb", "test/test_cli.rb", "test/test_config.rb", "test/test_http10.rb", "test/test_http11.rb", "test/test_integration.rb", "test/test_persistent.rb", "test/test_rack_handler.rb", "test/test_rack_server.rb", "test/test_thread_pool.rb", "test/test_unix_socket.rb", "test/test_ws.rb", "test/testhelp.rb", "tools/trickletest.rb"]
16
16
  s.rdoc_options = ["--main", "README.md"]
17
17
  s.require_paths = ["lib"]
18
18
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
19
19
  s.rubyforge_project = "puma"
20
- s.rubygems_version = "1.8.18"
20
+ s.rubygems_version = "1.8.17"
21
21
  s.summary = "Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications"
22
22
  s.test_files = ["test/test_app_status.rb", "test/test_cli.rb", "test/test_config.rb", "test/test_http10.rb", "test/test_http11.rb", "test/test_integration.rb", "test/test_persistent.rb", "test/test_rack_handler.rb", "test/test_rack_server.rb", "test/test_thread_pool.rb", "test/test_unix_socket.rb", "test/test_ws.rb"]
23
23
 
@@ -25,20 +25,20 @@ Gem::Specification.new do |s|
25
25
  s.specification_version = 3
26
26
 
27
27
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<rack>, ["~> 1.2"])
28
+ s.add_runtime_dependency(%q<rack>, ["< 2.0", ">= 1.2"])
29
29
  s.add_development_dependency(%q<rake-compiler>, ["~> 0.8.0"])
30
30
  s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
31
- s.add_development_dependency(%q<hoe>, ["~> 2.14"])
31
+ s.add_development_dependency(%q<hoe>, ["~> 2.12"])
32
32
  else
33
- s.add_dependency(%q<rack>, ["~> 1.2"])
33
+ s.add_dependency(%q<rack>, ["< 2.0", ">= 1.2"])
34
34
  s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
35
35
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
36
- s.add_dependency(%q<hoe>, ["~> 2.14"])
36
+ s.add_dependency(%q<hoe>, ["~> 2.12"])
37
37
  end
38
38
  else
39
- s.add_dependency(%q<rack>, ["~> 1.2"])
39
+ s.add_dependency(%q<rack>, ["< 2.0", ">= 1.2"])
40
40
  s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
41
41
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
42
- s.add_dependency(%q<hoe>, ["~> 2.14"])
42
+ s.add_dependency(%q<hoe>, ["~> 2.12"])
43
43
  end
44
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan Phoenix
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-29 00:00:00 Z
18
+ date: 2012-03-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack
@@ -33,34 +33,34 @@ dependencies:
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: rake-compiler
36
+ name: rdoc
37
37
  prerelease: false
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- hash: 63
43
+ hash: 19
44
44
  segments:
45
- - 0
46
- - 8
47
- - 0
48
- version: 0.8.0
45
+ - 3
46
+ - 10
47
+ version: "3.10"
49
48
  type: :development
50
49
  version_requirements: *id002
51
50
  - !ruby/object:Gem::Dependency
52
- name: rdoc
51
+ name: rake-compiler
53
52
  prerelease: false
54
53
  requirement: &id003 !ruby/object:Gem::Requirement
55
54
  none: false
56
55
  requirements:
57
56
  - - ~>
58
57
  - !ruby/object:Gem::Version
59
- hash: 19
58
+ hash: 63
60
59
  segments:
61
- - 3
62
- - 10
63
- version: "3.10"
60
+ - 0
61
+ - 8
62
+ - 0
63
+ version: 0.8.0
64
64
  type: :development
65
65
  version_requirements: *id003
66
66
  - !ruby/object:Gem::Dependency
@@ -71,11 +71,11 @@ dependencies:
71
71
  requirements:
72
72
  - - ~>
73
73
  - !ruby/object:Gem::Version
74
- hash: 31
74
+ hash: 7
75
75
  segments:
76
- - 2
77
- - 14
78
- version: "2.14"
76
+ - 3
77
+ - 0
78
+ version: "3.0"
79
79
  type: :development
80
80
  version_requirements: *id004
81
81
  description: |-
@@ -107,16 +107,7 @@ files:
107
107
  - TODO
108
108
  - bin/puma
109
109
  - bin/pumactl
110
- - examples/CA/cacert.pem
111
- - examples/CA/newcerts/cert_1.pem
112
- - examples/CA/newcerts/cert_2.pem
113
- - examples/CA/private/cakeypair.pem
114
- - examples/CA/serial
115
110
  - examples/config.rb
116
- - examples/puma/cert_puma.pem
117
- - examples/puma/csr_puma.pem
118
- - examples/puma/puma_keypair.pem
119
- - examples/qc_config.rb
120
111
  - ext/puma_http11/PumaHttp11Service.java
121
112
  - ext/puma_http11/ext_help.h
122
113
  - ext/puma_http11/extconf.rb
@@ -131,7 +122,6 @@ files:
131
122
  - lib/puma.rb
132
123
  - lib/puma/app/status.rb
133
124
  - lib/puma/cli.rb
134
- - lib/puma/compat.rb
135
125
  - lib/puma/configuration.rb
136
126
  - lib/puma/const.rb
137
127
  - lib/puma/control_cli.rb
@@ -195,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
185
  requirements: []
196
186
 
197
187
  rubyforge_project: puma
198
- rubygems_version: 1.8.18
188
+ rubygems_version: 1.8.21
199
189
  signing_key:
200
190
  specification_version: 3
201
191
  summary: Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications
@@ -1,23 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDxzCCAq+gAwIBAgIBADANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJVUzEO
3
- MAwGA1UECgwFbG9jYWwxDTALBgNVBAsMBGFlcm8xCzAJBgNVBAMMAkNBMB4XDTEy
4
- MDExNDAwMTcyN1oXDTE3MDExMjAwMTcyN1owOTELMAkGA1UEBhMCVVMxDjAMBgNV
5
- BAoMBWxvY2FsMQ0wCwYDVQQLDARhZXJvMQswCQYDVQQDDAJDQTCCASIwDQYJKoZI
6
- hvcNAQEBBQADggEPADCCAQoCggEBAN8bteVsrQxfKHzYuwP1vjH2r6qavPK/agCK
7
- bbPXZmWfUUGjL4ZT4jmnz/B6QNBBKTE/zWcuLXvyRR2FUCi8c5itUvraJVIuBPT/
8
- lvAZfbyIMpdHG1RPwA6jgTTXm7hnfZc0lCzsFRLk106XrjKeIkZOWffnVLNS2dyH
9
- X51/yZAS8wFyfx58gabC3hvzJLWw/fDSB/qQsOjp5XCCrP30ILPads/P2dEFNZ1M
10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F80yn6D+kqGwMSQHcpHUwCRt+c39Qoy99fCWdenP
5
- thfUscecy62Ij8+rKYCnoE9y766a5baowdDKqq3IBOZn2Ove3zfueGbHAbWehFop
6
- G2xySf0UPjdmWk+DRDlCeFLig6xfAnOKWo+N0MViso3dNK8gYzb6FWqlWgZgAcMp
7
- swIDAQABoAAwDQYJKoZIhvcNAQEEBQADgYEAmRsmIQ0pF9iPOO7V1NeHxrVpFz1B
8
- CZK0yAIGlCWqzpFO/OILN1hJfFnsFl7hZWipoARk15fN1sSXQF3Xb7/sc/8qVhyz
9
- oY38uu/8CE9CTdUutniLzP/4sUomXjslKNVV0qKtmfsFkj2tHtWjJkGAyZUcoKeG
10
- hDJxQlIHhZa7Xvw=
11
- -----END CERTIFICATE REQUEST-----
@@ -1,15 +0,0 @@
1
- -----BEGIN RSA PRIVATE KEY-----
2
- MIICXQIBAAKBgQCvF80yn6D+kqGwMSQHcpHUwCRt+c39Qoy99fCWdenPthfUscec
3
- y62Ij8+rKYCnoE9y766a5baowdDKqq3IBOZn2Ove3zfueGbHAbWehFopG2xySf0U
4
- PjdmWk+DRDlCeFLig6xfAnOKWo+N0MViso3dNK8gYzb6FWqlWgZgAcMpswIDAQAB
5
- AoGAHv/UyZivdULas4oPue3T2dnm2T239ZXZuywW21ym96pij7ql/6Gj6KClgMVJ
6
- TOQ6DLxYqn3vF/OwlqEfQWF0tTUYY+xNbEDE1YsbrS5/FSzbaEYYOHzRl/vMmnsf
7
- aNgYaSjOIecin7L71Wzq0piMIxg8BLb6IVECBku9EQNzxuECQQDZsbRgg1XZGj+r
8
- XAu/qXTNKQ/r7k+iPN5bXON6ApBomG+4Q7VVITL3tkGzLOphRZ37Q28FrN4B4gtC
9
- Xb9il5lDAkEAzecTSopPi2VdcME4WWmwn1rbTp/jJNt4dGZLsNfj9RejVDd32i/L
10
- P7wCpoPDaaVcoF2HgvCs39qatyVg6ecu0QJBALN4q+q9nDMGTuNpWU5D2EWjyrqJ
11
- mCF66R6NcASQxJlWwxQ4zfBHFIvgOD4Nk5VqHZqet5MIN2d6AipOu4/+x50CQHDp
12
- jf+rd1GHBcXGf8MwnUXWCjvEnEhi/lw+mLVivsRx8QRG4rfIy9monX949Flj8DaU
13
- 87IPj422kG9s1QeP2nECQQCkg+RUcoQm7SiM8OXuXNeHQlvQNp65geFRxzKAXxT/
14
- +1Mbtwnd3AXXZBekFDDpE9U3ZQjahoe7oc1oUBuw5hXL
15
- -----END RSA PRIVATE KEY-----
@@ -1,13 +0,0 @@
1
- full_hostname = `hostname`.strip
2
- domainname = full_hostname.split('.')[1..-1].join('.')
3
- hostname = full_hostname.split('.')[0]
4
-
5
- CA[:hostname] = hostname
6
- CA[:domainname] = domainname
7
- CA[:CA_dir] = File.join Dir.pwd, "CA"
8
- CA[:password] = 'puma'
9
-
10
- CERTS << {
11
- :type => 'server',
12
- :hostname => 'puma'
13
- }
@@ -1,7 +0,0 @@
1
- # Provides code to work properly on 1.8 and 1.9
2
-
3
- class String
4
- unless method_defined? :bytesize
5
- alias_method :bytesize, :size
6
- end
7
- end