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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1c3771f8d3caa98de2bb24358d52573cb6c02d0
|
4
|
+
data.tar.gz: 4ba4ff5be448c1cce2618240ff47d13007ef10d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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
|