puma 4.0.0-java → 4.0.1-java

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c39ea51db133a83024a8ff2356aa674b278b43899806403017ee6e579cc7dc3
4
- data.tar.gz: 790871a22c62426570bd73582809a42652ee5360c31b184d2278635e1f33162a
3
+ metadata.gz: 9afa58278b2e60192f5599f0c15f2120cfc0bb37c06a1b4da49aa070c0826572
4
+ data.tar.gz: ff3845c2bbe123ff2d8e8294807248fb75f428c13481665094f0cc3c3d6aa43f
5
5
  SHA512:
6
- metadata.gz: 5a62e84fa053a6975d602b4b8dad9644efffeeec38dbfe1dc29383d79a5d14791babefcbf70555e5c3ccc1ad5308352813a2f8487091223f5ea5cc6fa793add2
7
- data.tar.gz: 9df82d47ee069859147ccc986f79105d39e80fb8854e3d19eb5c92ad3825d58ee0dd0a180556a07bb5c49c93eb4b44f878663d7be4aaa22687c202c119674961
6
+ metadata.gz: dd4a38dfa08be4327025f310c5ab14fe55e95fc6e9775b301d1fe0c9780e25daca5fd198bea82eaba6e8ce05d29c88edba934d4323598e6cc43187bb26d673e2
7
+ data.tar.gz: '0847d1628c4478ddb8575dc5daec0fb924cc6f87a779cb5960b0f08b22f1620a648e0b5724194f58ba4be1a9403619f08b9dbb45f40c983b9e5f59a709e4d780'
data/History.md CHANGED
@@ -1,11 +1,21 @@
1
1
  ## Master
2
2
 
3
- x features
4
- x bugfixes
3
+ * Features
4
+ * Your feature goes here (#Github Number)
5
+
6
+ * Bugfixes
7
+ * Your bugfix goes here (#Github Number)
8
+
9
+ ## 4.0.1 / 2019-07-11
10
+
11
+ * 2 bugfixes
12
+ * Fix socket removed after reload - should fix problems with systemd socket activation. (#1829)
13
+ * Add extconf tests for DTLS_method & TLS_server_method, use in minissl.rb. Should fix "undefined symbol: DTLS_method" when compiling against old OpenSSL versions. (#1832)
14
+ * Removed unnecessary RUBY_VERSION checks. (#1827)
5
15
 
6
16
  ## 4.0.0 / 2019-06-25
7
17
 
8
- 9 features
18
+ * 9 features
9
19
  * Add support for disabling TLSv1.0 (#1562)
10
20
  * Request body read time metric (#1569)
11
21
  * Add out_of_band hook (#1648)
@@ -14,7 +24,9 @@ x bugfixes
14
24
  * Add option to suppress SignalException on SIGTERM (#1690)
15
25
  * Allow mutual TLS CA to be set using `ssl_bind` DSL (#1689)
16
26
  * Reactor now uses nio4r instead of `select` (#1728)
17
- 9 x bugfixes
27
+ * Add status to pumactl with pidfile (#1824)
28
+
29
+ * 9 bugfixes
18
30
  * Do not accept new requests on shutdown (#1685, #1808)
19
31
  * Fix 3 corner cases when request body is chunked (#1508)
20
32
  * Change pid existence check's condition branches (#1650)
@@ -1431,3 +1443,12 @@ be added back in a future date when a java Puma::MiniSSL is added.
1431
1443
  ## 1.0.0 / 2012-03-29
1432
1444
 
1433
1445
  * Released!
1446
+
1447
+ ## Ignore - this is for maintainers to copy-paste during release
1448
+ ## Master
1449
+
1450
+ * Features
1451
+ * Your feature goes here (#Github Number)
1452
+
1453
+ * Bugfixes
1454
+ * Your bugfix goes here (#Github Number)
@@ -9,6 +9,14 @@ unless ENV["DISABLE_SSL"]
9
9
  %w'ssl ssleay32'.find {|ssl| have_library(ssl, 'SSL_CTX_new')}
10
10
 
11
11
  have_header "openssl/bio.h"
12
+
13
+ # below is yes for 1.0.2 & later
14
+ have_func "DTLS_method" , "openssl/ssl.h"
15
+
16
+ # below are yes for 1.1.0 & later, may need to check func rather than macro
17
+ # with versions after 1.1.1
18
+ have_func "TLS_server_method" , "openssl/ssl.h"
19
+ have_macro "SSL_CTX_set_min_proto_version", "openssl/ssl.h"
12
20
  end
13
21
  end
14
22
 
@@ -168,8 +168,11 @@ VALUE engine_init_server(VALUE self, VALUE mini_ssl_ctx) {
168
168
  ID sym_no_tlsv1 = rb_intern("no_tlsv1");
169
169
  VALUE no_tlsv1 = rb_funcall(mini_ssl_ctx, sym_no_tlsv1, 0);
170
170
 
171
-
171
+ #ifdef HAVE_TLS_SERVER_METHOD
172
+ ctx = SSL_CTX_new(TLS_server_method());
173
+ #else
172
174
  ctx = SSL_CTX_new(SSLv23_server_method());
175
+ #endif
173
176
  conn->ctx = ctx;
174
177
 
175
178
  SSL_CTX_use_certificate_chain_file(ctx, RSTRING_PTR(cert));
@@ -232,8 +235,11 @@ VALUE engine_init_server(VALUE self, VALUE mini_ssl_ctx) {
232
235
  VALUE engine_init_client(VALUE klass) {
233
236
  VALUE obj;
234
237
  ms_conn* conn = engine_alloc(klass, &obj);
235
-
238
+ #ifdef HAVE_DTLS_METHOD
236
239
  conn->ctx = SSL_CTX_new(DTLS_method());
240
+ #else
241
+ conn->ctx = SSL_CTX_new(DTLSv1_method());
242
+ #endif
237
243
  conn->ssl = SSL_new(conn->ctx);
238
244
  SSL_set_app_data(conn->ssl, NULL);
239
245
  SSL_set_verify(conn->ssl, SSL_VERIFY_NONE, NULL);
@@ -53,7 +53,8 @@ module Puma
53
53
  @unix_paths.each do |i|
54
54
  # Errno::ENOENT is intermittently raised
55
55
  begin
56
- File.unlink i
56
+ unix_socket = UNIXSocket.new i
57
+ unix_socket.close
57
58
  rescue Errno::ENOENT
58
59
  end
59
60
  end
@@ -100,7 +100,7 @@ module Puma
100
100
  # too taxing on performance.
101
101
  module Const
102
102
 
103
- PUMA_VERSION = VERSION = "4.0.0".freeze
103
+ PUMA_VERSION = VERSION = "4.0.1".freeze
104
104
  CODE_NAME = "4 Fast 4 Furious".freeze
105
105
  PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
106
106
 
@@ -252,7 +252,7 @@ module Puma
252
252
 
253
253
  argv = restart_args
254
254
  Dir.chdir(@restart_dir)
255
- argv += [redirects] if RUBY_VERSION >= '1.9'
255
+ argv += [redirects]
256
256
  Kernel.exec(*argv)
257
257
  end
258
258
  end
@@ -281,7 +281,7 @@ module Puma
281
281
  wild = File.expand_path(File.join(puma_lib_dir, "../bin/puma-wild"))
282
282
  args = [Gem.ruby, wild, '-I', dirs.join(':'), deps.join(',')] + @original_argv
283
283
  # Ruby 2.0+ defaults to true which breaks socket activation
284
- args += [{:close_others => false}] if RUBY_VERSION >= '2.0'
284
+ args += [{:close_others => false}]
285
285
  Kernel.exec(*args)
286
286
  end
287
287
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Evan Phoenix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-25 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.7.6
139
+ rubygems_version: 2.7.9
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for