iodine 0.7.35 → 0.7.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/ext/iodine/fio.c +4 -4
- data/lib/iodine/version.rb +1 -1
- data/lib/rack/handler/iodine.rb +1 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caba5a01ba9efefbadf0fd3c974e34977dc1e671ce18d17ea924d746b7936759
|
4
|
+
data.tar.gz: d16060974362ee9bfdedbd4d46eadbeea48c2b57379e2a27609bcaad5fde5ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef0992c4f4399535d17e818b6dc557f8d2811c02207d38d8e94c53cd3105528bd494a1ff1cb0ad77228a60268d7861c0a81b08ae2c3b9688b9e13a532384f89
|
7
|
+
data.tar.gz: 2d03ae0c9435544580a0c943f4823c4d1103318929a3a0e44b209bd0e6c6f104d93928622c041af6358360198b6606acac80ec4f57ce46ce4650a2e62287f155
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ Please notice that this change log contains changes for upcoming releases as wel
|
|
6
6
|
|
7
7
|
## Changes:
|
8
8
|
|
9
|
+
#### Change log v.0.7.36
|
10
|
+
|
11
|
+
**Fix**: avoids clobbering the namespace when attempting to set Rack's default handler. Credit to Caleb Albritton ( @WA9ACE ) for issue #80 and PR #81.
|
12
|
+
|
13
|
+
**Fix**: avoids some `SIGINT` signals during the shutdown procedure (rollback).
|
14
|
+
|
9
15
|
#### Change log v.0.7.35
|
10
16
|
|
11
17
|
**Fix**: fix memory leak in the x-sendfile path where Ruby objects no longer in use would still be protected by iodine.
|
data/ext/iodine/fio.c
CHANGED
@@ -3817,7 +3817,8 @@ static void fio_worker_cleanup(void) {
|
|
3817
3817
|
fio_timer_clear_all();
|
3818
3818
|
fio_defer_perform();
|
3819
3819
|
if (!fio_data->is_worker) {
|
3820
|
-
|
3820
|
+
fio_cluster_signal_children();
|
3821
|
+
fio_defer_perform();
|
3821
3822
|
while (wait(NULL) != -1)
|
3822
3823
|
;
|
3823
3824
|
}
|
@@ -6206,7 +6207,7 @@ static void fio_cluster_listen_on_close(intptr_t uuid,
|
|
6206
6207
|
(int)getpid());
|
6207
6208
|
#endif
|
6208
6209
|
if (fio_data->active)
|
6209
|
-
|
6210
|
+
fio_stop();
|
6210
6211
|
}
|
6211
6212
|
(void)uuid;
|
6212
6213
|
}
|
@@ -6248,7 +6249,6 @@ static void fio_cluster_client_handler(struct cluster_pr_s *pr) {
|
|
6248
6249
|
break;
|
6249
6250
|
case FIO_CLUSTER_MSG_SHUTDOWN:
|
6250
6251
|
fio_stop();
|
6251
|
-
kill(getpid(), SIGINT);
|
6252
6252
|
case FIO_CLUSTER_MSG_ERROR: /* fallthrough */
|
6253
6253
|
case FIO_CLUSTER_MSG_PING: /* fallthrough */
|
6254
6254
|
case FIO_CLUSTER_MSG_ROOT: /* fallthrough */
|
@@ -6503,7 +6503,7 @@ static void fio_pubsub_on_fork(void) {
|
|
6503
6503
|
/** Signals children (or self) to shutdown) - NOT signal safe. */
|
6504
6504
|
static void fio_cluster_signal_children(void) {
|
6505
6505
|
if (fio_parent_pid() != getpid()) {
|
6506
|
-
|
6506
|
+
fio_stop();
|
6507
6507
|
return;
|
6508
6508
|
}
|
6509
6509
|
fio_cluster_server_sender(fio_msg_internal_create(0, FIO_CLUSTER_MSG_SHUTDOWN,
|
data/lib/iodine/version.rb
CHANGED
data/lib/rack/handler/iodine.rb
CHANGED
@@ -18,14 +18,7 @@ module Iodine
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
ENV['RACK_HANDLER']
|
22
|
-
|
23
|
-
# make Iodine the default fallback position for Rack.
|
24
|
-
begin
|
25
|
-
require 'rack/handler' unless defined?(Rack::Handler)
|
26
|
-
Rack::Handler::WEBrick = ::Iodine::Rack # Rack::Handler.get(:iodine)
|
27
|
-
rescue LoadError
|
28
|
-
end
|
21
|
+
ENV['RACK_HANDLER'] ||= 'iodine'
|
29
22
|
|
30
23
|
begin
|
31
24
|
::Rack::Handler.register('iodine', 'Iodine::Rack') if defined?(::Rack::Handler)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iodine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -243,7 +243,7 @@ licenses:
|
|
243
243
|
metadata:
|
244
244
|
allowed_push_host: https://rubygems.org
|
245
245
|
post_install_message: |-
|
246
|
-
Thank you for installing Iodine 0.7.
|
246
|
+
Thank you for installing Iodine 0.7.36.
|
247
247
|
Remember: if iodine supports your business, it's is only fair to give value back (code contributions / donations).
|
248
248
|
rdoc_options: []
|
249
249
|
require_paths:
|