iodine 0.7.35 → 0.7.36

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f07c471ae04fb0a960e636a064b6d37bb6c122397a08cbcd6b8bfd346c0404c3
4
- data.tar.gz: c5be46ad5c0c11905e302993ae5658aff5dd2d3e12a5a7aa2158000ae3bbed30
3
+ metadata.gz: caba5a01ba9efefbadf0fd3c974e34977dc1e671ce18d17ea924d746b7936759
4
+ data.tar.gz: d16060974362ee9bfdedbd4d46eadbeea48c2b57379e2a27609bcaad5fde5ea9
5
5
  SHA512:
6
- metadata.gz: 4dccb90c6164381e2645514a4f1d5710c8edc94765f102fab56e27e4a5f91a598df7daeb3aa1519aa62e7f88c76fc87793f1a41ec6b7fcdb80ce206297afd9a5
7
- data.tar.gz: 773ba1086531e10702ae59c27b7ef52d6ebf9fdc9616b7fe8dfe73b680ed5792705549bbb1aff3c21b32d3ae177aff1de40c8d7d7042afef358d7b9d404433a8
6
+ metadata.gz: 6ef0992c4f4399535d17e818b6dc557f8d2811c02207d38d8e94c53cd3105528bd494a1ff1cb0ad77228a60268d7861c0a81b08ae2c3b9688b9e13a532384f89
7
+ data.tar.gz: 2d03ae0c9435544580a0c943f4823c4d1103318929a3a0e44b209bd0e6c6f104d93928622c041af6358360198b6606acac80ec4f57ce46ce4650a2e62287f155
@@ -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.
@@ -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
- kill(0, SIGINT);
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
- kill(0, SIGINT);
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
- kill(getpid(), SIGINT);
6506
+ fio_stop();
6507
6507
  return;
6508
6508
  }
6509
6509
  fio_cluster_server_sender(fio_msg_internal_create(0, FIO_CLUSTER_MSG_SHUTDOWN,
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '0.7.35'.freeze
2
+ VERSION = '0.7.36'.freeze
3
3
  end
@@ -18,14 +18,7 @@ module Iodine
18
18
  end
19
19
  end
20
20
 
21
- ENV['RACK_HANDLER'] = 'iodine'
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.35
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-19 00:00:00.000000000 Z
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.35.
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: