passenger 4.0.55 → 4.0.56

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2UzYzkxNTRiNjUxOTE2ODg4ZjE2NzcxNzU2ZGUyNTBjNmQ0OGUyZA==
4
+ Mjc1ZGFjMmE1MjQ3ZmVmOWFiYjg3NWQzNTk2Y2EzY2FjMmE2MTgxOQ==
5
5
  data.tar.gz: !binary |-
6
- MDc2ZDYyNTIzN2Y0MGMyYWJiMDBjOTg1ZTc5NjI3ZmFhZTgzMDgxOQ==
6
+ ZTQ2NDEwYjc3NTI3ZGUyOWNhOTJmZTFiMzRjZDU2ZDQwODM5ZDUxNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGU5ZThlOGMxZmExYmFlZGVlZjhlMWI5MTA4ZjkwMDMwNWRmNzhkZjc5YmVl
10
- N2QzZjgxNDI2Nzc1NjY2ZmJlYjZkMjIxYjQzMDg0MWQ1YmIxOWJhYjMzODNj
11
- ZGMyNWRlNTkxNWFkZTExZGU5MDhlMjNjMGMyYzc1MTQwODY1ZWM=
9
+ Yzg1OWRjNzQ2ZDA3ZjAxYWI0YzQ3NWUxOWYyMjIyM2MyYTAwZjU0MDVlMjc0
10
+ M2JlYWJmMzk0MWNkNjVkNmM5Nzc2N2I0NTg1ZmMxMDllMTA5NmZlYzJjYmFm
11
+ ODE3NWI0NjUxOGRkNTM5ODQ4NWI2ODQ5OTBjYTY2YzEzMzA3NjQ=
12
12
  data.tar.gz: !binary |-
13
- NzJhYWYwYjA3YTFiMjcwNDhiOGEwYjY2NWU4MTI2ZGY3NmMyMzg0YTBlOThl
14
- ZDdhMjk1MDI3YzExYzc4NDNiMzJhYjEzNzllNjY2MGM2YWM3MzZjMjI2YmQ4
15
- NjM0MzJkMDdmYzVkM2EzOTQzODFlNzIzZDRjNjgwOTg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fCwoS
10
+ 2PAvFQgync6o6r6yz+e5ge6EJ1htq1LzQDtgHv0xfGQzE3znlsoVzWoBz2JrPkY=
11
+ =h7Sh
12
12
  -----END PGP SIGNATURE-----
data.tar.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJUiwJyAAoJECrHRaUKISqMJiAH/0J2j3e4PfWQMqZUbBj64M7J
6
- uEJqycYmBPBhVe2SyRuJnflnZwiIGFpFfDY32XUqAXEJl+lJmZ7Yu+eqfdhHKVMG
7
- T0iEkBMSBCAOXkT9jEHwgph5uF4qh77TdO+YWS1lYKYUwsoK+rG2iLHieaFKyNzu
8
- c6UhLKiz4j7xbnHv0SU6uxBWq8tuihKxvMGksuaBe7paegXYCEo/v2zl3EXlliEc
9
- QVd97e2uxgxwCDc0zvlS8mznv+XVKRQz0fGs8oYYBe2Kv8Zi1S+QX3Cz6Btb0Ll6
10
- nd0fEvNI4j8QvhrhOVKaN4RkYlMpGSx1xYu6jUe4kQ6+AIvR6yN315coCEKa5UY=
11
- =keF3
5
+ iQEcBAABAgAGBQJUky9uAAoJECrHRaUKISqMmBwH/A6W2oG4Zc1K9Jj81OoHTGxl
6
+ 60yCeMsvUYq9BZZoc0N44hMhjgUHV5YxxXOvHghSPQiheo9DZ/169luk5jSdO1WS
7
+ dqAwN7rbLFieqhSlJuNa9T30USZE/WWv4T808LxLVaaIEeeS+tBtn4J4qfMxhEiY
8
+ iqoTLhr81IWtMcQJN7B6zlaL3ITkleBMGX44Prf5o/U+6GeJr1Z7ZbpNIoI2XBCR
9
+ CM4JYGuJRR38UaSyVdn9ufaWkgrvn7FH0Wbri+Yq4PC98zQmoR2Bb3mGWBWpbAcR
10
+ J1hEQVev7kp/Sd8p4EhPlzH9KLf0lvPv11Pz1plo7y6pntbUdnTHIDNdQyit0oI=
11
+ =2Wxk
12
12
  -----END PGP SIGNATURE-----
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ Release 4.0.56
2
+ --------------
3
+
4
+ * Fixed a file descriptor leak that manifests when an error page is shown. Contributed by Paul Bonaud, closes GH-1325.
5
+ * Improved Node.js request load balancing. Closes GH-1322. Thanks to Charles Vallières for the analysis.
6
+
7
+
1
8
  Release 4.0.55
2
9
  --------------
3
10
 
data/CONTRIBUTORS CHANGED
@@ -57,6 +57,7 @@ Nathaniel Bibler
57
57
  Neil Wilson
58
58
  Ninh Bui (Phusion)
59
59
  Pat Downey
60
+ Paul B
60
61
  Paul Kmiec
61
62
  Pepijn Looije
62
63
  Perry Smith
@@ -184,7 +184,6 @@ void processAndLogNewSpawnException(SpawnException &e, const Options &options,
184
184
 
185
185
  try {
186
186
  int fd = -1;
187
- FdGuard guard(fd, true);
188
187
  string errorPage;
189
188
 
190
189
  UPDATE_TRACE_POINT();
@@ -199,6 +198,7 @@ void processAndLogNewSpawnException(SpawnException &e, const Options &options,
199
198
  getSystemTempDir());
200
199
  fd = mkstemp(filename);
201
200
  #endif
201
+ FdGuard guard(fd, true);
202
202
  if (fd == -1) {
203
203
  int e = errno;
204
204
  throw SystemException("Cannot generate a temporary filename",
@@ -540,19 +540,18 @@ public:
540
540
  int busyness() const {
541
541
  /* Different processes within a Group may have different
542
542
  * 'concurrency' values. We want:
543
- * - Group.pqueue to sort the processes from least used to most used.
544
- * - to give processes with concurrency == 0 more priority over processes
545
- * with concurrency > 0.
546
- * Therefore, we describe our busyness as a percentage of 'concurrency', with
547
- * the percentage value in [0..INT_MAX] instead of [0..1].
543
+ * - the process with the smallest busyness to be be picked for routing
544
+ * (through Group.pqueue).
545
+ * - to give processes with concurrency == 0 more priority (in general)
546
+ * over processes with concurrency > 0.
547
+ * Therefore, in case of processes with concurrency > 0, we describe our
548
+ * busyness as a percentage of 'concurrency', with the percentage value
549
+ * in [0..INT_MAX] instead of [0..1]. That way, the busyness value
550
+ * of processes with concurrency > 0 is usually higher than that of processes
551
+ * with concurrency == 0.
548
552
  */
549
553
  if (concurrency == 0) {
550
- // Allows Group.pqueue to give idle sockets more priority.
551
- if (sessions == 0) {
552
- return 0;
553
- } else {
554
- return 1;
555
- }
554
+ return sessions;
556
555
  } else {
557
556
  return (int) (((long long) sessions * INT_MAX) / (double) concurrency);
558
557
  }
@@ -90,7 +90,7 @@
90
90
 
91
91
  #define NGINX_DOC_URL "https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html"
92
92
 
93
- #define PASSENGER_VERSION "4.0.55"
93
+ #define PASSENGER_VERSION "4.0.56"
94
94
 
95
95
  #define POOL_HELPER_THREAD_STACK_SIZE 262144
96
96
 
@@ -30,7 +30,7 @@ module PhusionPassenger
30
30
 
31
31
  PACKAGE_NAME = 'passenger'
32
32
  # Run 'rake ext/common/Constants.h' after changing this number.
33
- VERSION_STRING = '4.0.55'
33
+ VERSION_STRING = '4.0.56'
34
34
 
35
35
  PREFERRED_NGINX_VERSION = '1.6.2'
36
36
  NGINX_SHA256_CHECKSUM = 'b5608c2959d3e7ad09b20fc8f9e5bd4bc87b3bc8ba5936a513c04ed8f1391a18'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.55
4
+ version: 4.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phusion - http://www.phusion.nl/
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
metadata.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJUiwJyAAoJECrHRaUKISqMAsYIAJrctJZvwWdk61VIysNIQdBa
6
- 8Rt8kvfFvCyUQzXn2CiofyhLT66lhJxnP76b+Y6rbLTPJvYQNwdK+gqpSO1PqSkh
7
- PFm4rT68dzYh1UfRJL+KRuciz8U/gREpNEg10gxeHU+jwvKLlgnrmxXVLKVMhmvX
8
- B26++RExwF/7pasctr8QOe6EecTM5ccWwy7/Cl+qt3Y7W3rM6KZqtZWAvvCNfq0w
9
- Q0z487MHplF3tPy+HSfPJrcBaUBHw5Bda0pMXsNOjj62Kz9j7MARIdzyCjArayma
10
- 1OXtXfO7nt1rNKs527P1Umf46xToZZOnP278rrMivgSbKOTylZnfV8VxC0e2tng=
11
- =/7tV
5
+ iQEcBAABAgAGBQJUky9uAAoJECrHRaUKISqM+C8H/jP/fTfjlMp/SgNU7JkqTAXS
6
+ 2KxHSwVfDlRukzy9UIqDXxiLVdA9CaYjEWgya8I/PVw1OqiRzQtcwZuOk9CPbgzD
7
+ lzad81GwI5xpssU4YdR9mVpp1mfx3pUuMQXBvTJ0eQBo5EVb8cT3gu1KBLqIgy7r
8
+ 6LlcVOdAGA0ck4116p088Ml0qr+S/1nbF8dUdGEr70Mtx4yAXKIiKlBI7jMBiOCB
9
+ tF8tgkow/oQvYON+RPu2H7eAY9kJKHSGJKbYQbfyeE06mHH0gtlBu5dZSkju2oJ1
10
+ Rg7ph80agPROKL1RdK5JaRxWjQGUnIpUO4q9w1wGRZ/Q5jDCsMMaLggTkkryMtU=
11
+ =qA8S
12
12
  -----END PGP SIGNATURE-----