splitclient-rb 7.1.0.pre.rc16 → 7.1.0.pre.rc17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c872b25c30a7d8a7627a27314929493ba64a9275037e324fce886341ada28696
4
- data.tar.gz: 40ed92e9b6b9f945960e7f6f104adedf9cfe694cc2807e2fff4ba88b27e79cb6
3
+ metadata.gz: 6cffe57c4367a28388518dcadcdd3375951e5fae7f6f3c05b00473d5458d6376
4
+ data.tar.gz: 5c7d91d90c679eae408c5bbe563bb25cbbd2bce4085beb71ca457ba49d7235ec
5
5
  SHA512:
6
- metadata.gz: 5de1133d631592caee473712876f0c9a410eb7eb8e63c01d3ca2a8ecc1bf71723862e2e990de5fe7761b970f1082aebd25756f99f48f128e6c5ff2406ef8404b
7
- data.tar.gz: 99511ad013f4291466ef8056de6e2ff33da9ca731d46b4289a26b2396bddf2d64e972831079dcfe03f274564ca8373290bb8767f5317cf46da100d8d5a62fd1b
6
+ metadata.gz: c3cb0bb3b74d965bdb1d11422c1696ef0a8701e5624f464f82efeb69c7815ca0e0f9477d9267dc557fd62a513f4b19366a0351b55f2a5ca7a7f22669cab24e8b
7
+ data.tar.gz: 26ad4fefd314538ce755a754f6303088c4c30e271ce34b6c3f3e07e082aa6ff70480797a1e3f3a6aa8147962add3e869949fa87e17d7c249bd003201fd737895
@@ -64,7 +64,7 @@ module SplitIoClient
64
64
  @config.logger.debug("Segment names: #{@segments_repository.used_segment_names.to_a}") if @config.debug_enabled
65
65
 
66
66
  sleep_for = SplitIoClient::Cache::Stores::StoreUtils.random_interval(@config.segments_refresh_rate)
67
- @config.logger.debug("Segments store is sleeping for: #{sleep_for} seconds") if @config.debug_enabled
67
+ @config.logger.debug("Segments fetcher is sleeping for: #{sleep_for} seconds") if @config.debug_enabled
68
68
  sleep(sleep_for)
69
69
  end
70
70
  end
@@ -60,7 +60,9 @@ module SplitIoClient
60
60
  loop do
61
61
  fetch_splits
62
62
 
63
- sleep(SplitIoClient::Cache::Stores::StoreUtils.random_interval(@config.features_refresh_rate))
63
+ sleep_for = SplitIoClient::Cache::Stores::StoreUtils.random_interval(@config.features_refresh_rate)
64
+ @config.logger.debug("Splits fetcher is sleeping for: #{sleep_for} seconds") if @config.debug_enabled
65
+ sleep(sleep_for)
64
66
  end
65
67
  end
66
68
  end
@@ -39,6 +39,7 @@ module SplitIoClient
39
39
  def start
40
40
  if @config.streaming_enabled
41
41
  start_stream
42
+ start_stream_forked if defined?(PhusionPassenger)
42
43
  elsif @config.standalone?
43
44
  start_poll
44
45
  end
@@ -53,7 +54,6 @@ module SplitIoClient
53
54
  @synchronizer.start_periodic_data_recording
54
55
 
55
56
  stream_start_sse_thread
56
- stream_start_sse_thread_forked if defined?(PhusionPassenger)
57
57
  end
58
58
 
59
59
  def start_poll
@@ -94,6 +94,10 @@ module SplitIoClient
94
94
  PhusionPassenger.on_event(:starting_worker_process) { |forked| stream_start_sse_thread if forked }
95
95
  end
96
96
 
97
+ def start_stream_forked
98
+ PhusionPassenger.on_event(:starting_worker_process) { |forked| start_stream if forked }
99
+ end
100
+
97
101
  def process_connected
98
102
  @synchronizer.stop_periodic_fetch
99
103
  @synchronizer.sync_all
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.0.pre.rc16'
2
+ VERSION = '7.1.0.pre.rc17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0.pre.rc16
4
+ version: 7.1.0.pre.rc17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Split Software