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

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
  SHA1:
3
- metadata.gz: 473ab58b58ec7331b1fdb7fe3d584bac211ae83e
4
- data.tar.gz: 0d6decb9582aa81dcb985f54530edbfaa57ea692
3
+ metadata.gz: a1c3771f8d3caa98de2bb24358d52573cb6c02d0
4
+ data.tar.gz: 4ba4ff5be448c1cce2618240ff47d13007ef10d5
5
5
  SHA512:
6
- metadata.gz: 2d0334efdc3d10286690e4a5b074b8b9f8dbe26e3e6f3d23faeb336c93e129135bb6f6466fefce2642d9db85c497b699457de9fc9e276de27ddcd06156cabcaf
7
- data.tar.gz: '083be679cb1928fc8a988a635ca13947755cf392e2b66980366076bb68fde8ea01932a8c41fe57455c85f98c24d98d120393deecae40e6a38848123448eafa7b'
6
+ metadata.gz: 0c43bf377bb7388b1b8003d8898a85067d567b38bc9079ce9e3240fc5d76474ebf74dde5be594aaebf15fe966fcd9a6c1e3e2f37559b089d21224b4817ae411c
7
+ data.tar.gz: f272098c23e90419a01789a9c8d2f97167d4b156fa965fdc5d7b563698c714aea41c89f31c0fe37057a6a866d1ba35ef3f93ba94916e885f23df792f50c3969e
@@ -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: java
6
6
  authors:
7
7
  - Split Software