unicorn 4.2.0 → 4.2.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 +5 -0
- data/examples/nginx.conf +4 -4
- data/lib/unicorn/const.rb +1 -1
- data/lib/unicorn/http_server.rb +3 -0
- data/script/isolate_for_tests +1 -1
- metadata +5 -5
data/GIT-VERSION-GEN
CHANGED
data/KNOWN_ISSUES
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
Occasionally odd {issues}[link:ISSUES.html] arise without a transparent or
|
4
4
|
acceptable solution. Those issues are documented here.
|
5
5
|
|
6
|
+
* Some libraries/applications may install signal handlers which conflict
|
7
|
+
with signal handlers unicorn uses. Leaving "preload_app false"
|
8
|
+
(the default) will allow unicorn to always override existing signal
|
9
|
+
handlers.
|
10
|
+
|
6
11
|
* Issues with FreeBSD jails can be worked around as documented by Tatsuya Ono:
|
7
12
|
http://mid.gmane.org/CAHBuKRj09FdxAgzsefJWotexw-7JYZGJMtgUp_dhjPz9VbKD6Q@mail.gmail.com
|
8
13
|
|
data/examples/nginx.conf
CHANGED
@@ -55,7 +55,7 @@ http {
|
|
55
55
|
# faster or not than doing compression via nginx. It's easier
|
56
56
|
# to configure it all in one place here for static files and also
|
57
57
|
# to disable gzip for clients who don't get gzip/deflate right.
|
58
|
-
# There are other
|
58
|
+
# There are other gzip settings that may be needed used to deal with
|
59
59
|
# bad clients out there, see http://wiki.nginx.org/NginxHttpGzipModule
|
60
60
|
gzip on;
|
61
61
|
gzip_http_version 1.0;
|
@@ -120,9 +120,9 @@ http {
|
|
120
120
|
# http://en.wikipedia.org/wiki/X-Forwarded-For
|
121
121
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
122
122
|
|
123
|
-
# enable this if
|
124
|
-
# set the proper
|
125
|
-
# proxy_set_header X-Forwarded-Proto
|
123
|
+
# enable this if you forward HTTPS traffic to unicorn,
|
124
|
+
# this helps Rack set the proper URL scheme for doing redirects:
|
125
|
+
# proxy_set_header X-Forwarded-Proto $scheme;
|
126
126
|
|
127
127
|
# pass the Host: header from the client right along so redirects
|
128
128
|
# can be set properly within the Rack application
|
data/lib/unicorn/const.rb
CHANGED
data/lib/unicorn/http_server.rb
CHANGED
@@ -656,6 +656,9 @@ class Unicorn::HttpServer
|
|
656
656
|
wpid <= 0 and return
|
657
657
|
Process.kill(0, wpid)
|
658
658
|
wpid
|
659
|
+
rescue Errno::EPERM
|
660
|
+
logger.info "pid=#{path} possibly stale, got EPERM signalling PID:#{wpid}"
|
661
|
+
nil
|
659
662
|
rescue Errno::ESRCH, Errno::ENOENT
|
660
663
|
# don't unlink stale pid files, racy without non-portable locking...
|
661
664
|
end
|
data/script/isolate_for_tests
CHANGED
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: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 4.2.
|
9
|
+
- 1
|
10
|
+
version: 4.2.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: 2012-
|
18
|
+
date: 2012-03-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rack
|
@@ -421,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
421
421
|
requirements: []
|
422
422
|
|
423
423
|
rubyforge_project: mongrel
|
424
|
-
rubygems_version: 1.8.
|
424
|
+
rubygems_version: 1.8.21
|
425
425
|
signing_key:
|
426
426
|
specification_version: 3
|
427
427
|
summary: Rack HTTP server for fast clients and Unix
|