unicorn 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/GIT-VERSION-GEN +1 -1
- data/KNOWN_ISSUES +2 -2
- data/lib/unicorn/http_server.rb +2 -2
- metadata +4 -4
data/GIT-VERSION-GEN
CHANGED
data/KNOWN_ISSUES
CHANGED
@@ -5,13 +5,13 @@ acceptable solution. Those issues are documented here.
|
|
5
5
|
|
6
6
|
* PRNGs (pseudo-random number generators) loaded before forking
|
7
7
|
(e.g. "preload_app true") may need to have their internal state
|
8
|
-
reset in the after_fork hook. Starting with \Unicorn 3.6.
|
8
|
+
reset in the after_fork hook. Starting with \Unicorn 3.6.1, we
|
9
9
|
have builtin workarounds for Kernel#rand and OpenSSL::Random users,
|
10
10
|
but applications may use other PRNGs.
|
11
11
|
|
12
12
|
* Under some versions of Ruby 1.8, it is necessary to call +srand+ in an
|
13
13
|
after_fork hook to get correct random number generation. We have a builtin
|
14
|
-
workaround for this starting with \Unicorn 3.6.
|
14
|
+
workaround for this starting with \Unicorn 3.6.1
|
15
15
|
|
16
16
|
See http://redmine.ruby-lang.org/issues/show/4338
|
17
17
|
|
data/lib/unicorn/http_server.rb
CHANGED
@@ -492,11 +492,11 @@ class Unicorn::HttpServer
|
|
492
492
|
def after_fork_internal
|
493
493
|
@ready_pipe.close if @ready_pipe
|
494
494
|
self.ready_pipe = nil # XXX Rainbows! compat, change for Unicorn 4.x
|
495
|
-
|
495
|
+
srand # http://redmine.ruby-lang.org/issues/4338
|
496
496
|
|
497
497
|
# The OpenSSL PRNG is seeded with only the pid, and apps with frequently
|
498
498
|
# dying workers can recycle pids
|
499
|
-
OpenSSL::Random.seed(
|
499
|
+
OpenSSL::Random.seed(rand.to_s) if defined?(OpenSSL::Random)
|
500
500
|
end
|
501
501
|
|
502
502
|
def spawn_missing_workers
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 3.6.
|
9
|
+
- 1
|
10
|
+
version: 3.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Unicorn hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rack
|