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.
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v4.2.0.GIT
4
+ DEF_VER=v4.2.1.GIT
5
5
 
6
6
  LF='
7
7
  '
@@ -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
 
@@ -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 other gzip settings that may be needed used to deal with
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 and only if you use HTTPS, this helps Rack
124
- # set the proper protocol for doing redirects:
125
- # proxy_set_header X-Forwarded-Proto https;
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
@@ -8,7 +8,7 @@
8
8
  # improve things much compared to constants.
9
9
  module Unicorn::Const
10
10
 
11
- UNICORN_VERSION = "4.2.0"
11
+ UNICORN_VERSION = "4.2.1"
12
12
 
13
13
  # default TCP listen host address (0.0.0.0, all interfaces)
14
14
  DEFAULT_HOST = "0.0.0.0"
@@ -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
@@ -21,7 +21,7 @@ pid = fork do
21
21
  end
22
22
  gem 'raindrops', '0.8.0'
23
23
  gem 'kgio-monkey', '0.3.0'
24
- gem 'kgio', '2.7.2'
24
+ gem 'kgio', '2.7.4'
25
25
  gem 'rack', '1.4.1'
26
26
  end
27
27
  end
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: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 2
9
- - 0
10
- version: 4.2.0
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-01-28 00:00:00 Z
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.11
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