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