unicorn-camilo 4.8.2.5.13 → 4.8.2.5.14
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.
- checksums.yaml +4 -4
- data/GIT-VERSION-FILE +1 -1
- data/lib/unicorn/configurator.rb +9 -0
- data/lib/unicorn/version.rb +1 -1
- data/unicorn.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 330f8b660b5a5bde8d093eb6fef58bcf79033c34
|
|
4
|
+
data.tar.gz: 15a6a514f5116267a5300b277c37f75ff4d18f22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17a8e5261cc440fa28f3407e6054c5ac8ed9eac1f340f494fcdfc8786bf6c1476919ca7792799039a5dd2f539fea33d0bac591892ae7abc52e2e6802518c4148
|
|
7
|
+
data.tar.gz: f6d4d7598b4c714e0496387f7c945571e6e8454b6549669c377e7c7a325d6ba276af758d23c8d16afba24d62d0ed66327eed7b5ec3cc3c7bee6f84c3232db061
|
data/GIT-VERSION-FILE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
GIT_VERSION = 4.8.2.
|
|
1
|
+
GIT_VERSION = 4.8.2.6.g532d
|
data/lib/unicorn/configurator.rb
CHANGED
|
@@ -43,6 +43,7 @@ class Unicorn::Configurator
|
|
|
43
43
|
:before_exec => lambda { |server|
|
|
44
44
|
server.logger.info("forked child re-executing...")
|
|
45
45
|
},
|
|
46
|
+
:before_murder => nil,
|
|
46
47
|
:pid => nil,
|
|
47
48
|
:preload_app => false,
|
|
48
49
|
:check_client_connection => false,
|
|
@@ -171,6 +172,14 @@ class Unicorn::Configurator
|
|
|
171
172
|
set_hook(:before_exec, block_given? ? block : args[0], 1)
|
|
172
173
|
end
|
|
173
174
|
|
|
175
|
+
# Sets the before_murder hook to a gien Proc object. This Proc object
|
|
176
|
+
# will be called by the master process before killing a lazy worker
|
|
177
|
+
# with SIGKILL, the point of this callback is NOT to prevent killing
|
|
178
|
+
# but to provide an instrumentation hook
|
|
179
|
+
def before_exec(*args, &block)
|
|
180
|
+
set_hook(:before_murder, block_given? ? block : args[0], 1)
|
|
181
|
+
end
|
|
182
|
+
|
|
174
183
|
# sets the timeout of worker processes to +seconds+. Workers
|
|
175
184
|
# handling the request/app.call/response cycle taking longer than
|
|
176
185
|
# this time period will be forcibly killed (via SIGKILL). This
|
data/lib/unicorn/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Unicorn::Const::UNICORN_VERSION = '4.8.2.
|
|
1
|
+
Unicorn::Const::UNICORN_VERSION = '4.8.2.6.g532d'
|
data/unicorn.gemspec
CHANGED