splitclient-rb 7.1.0.pre.rc10-java → 7.1.0.pre.rc11-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/splitclient-rb/engine/sync_manager.rb +5 -2
- data/lib/splitclient-rb/sse/event_source/client.rb +2 -2
- data/lib/splitclient-rb/sse/workers/segments_worker.rb +2 -1
- data/lib/splitclient-rb/sse/workers/splits_worker.rb +2 -1
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26bf0f3cae06522a94f965702563f29bcfa56fe2
|
4
|
+
data.tar.gz: fe35f604d41247738a0c7508b18d55b166a2643a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3ebe98f1039c10fbb54dd737111f2225f145cfbe38625a9dfd26340193446f38344f6b7aff01e284571d410b9246f7d7900ef321d2979d93449bea8e7ef2eb
|
7
|
+
data.tar.gz: 5c3caa17d12a007b3b8408f1eca42922758fda339695685132ab5932d322cff732096936e2a172282cbf4ecf35f58ed4e70ee29a7d14888642b2a7b8eb2f87d4
|
@@ -48,8 +48,11 @@ module SplitIoClient
|
|
48
48
|
|
49
49
|
# Starts tasks if stream is enabled.
|
50
50
|
def start_stream
|
51
|
-
stream_start_thread
|
52
|
-
|
51
|
+
stream_start_thread unless defined?(PhusionPassenger)
|
52
|
+
stream_start_thread_forked if defined?(PhusionPassenger)
|
53
|
+
|
54
|
+
stream_start_sse_thread unless defined?(PhusionPassenger)
|
55
|
+
stream_start_sse_thread_forked if defined?(PhusionPassenger)
|
53
56
|
end
|
54
57
|
|
55
58
|
def start_poll
|
@@ -40,7 +40,6 @@ module SplitIoClient
|
|
40
40
|
@connected.make_false
|
41
41
|
SplitIoClient::Helpers::ThreadHelper.stop(:connect_stream, @config)
|
42
42
|
@socket&.close
|
43
|
-
@socket = nil
|
44
43
|
rescue StandardError => e
|
45
44
|
@config.logger.error("SSEClient close Error: #{e.inspect}")
|
46
45
|
end
|
@@ -48,7 +47,8 @@ module SplitIoClient
|
|
48
47
|
def start(url)
|
49
48
|
@uri = URI(url)
|
50
49
|
|
51
|
-
connect_thread
|
50
|
+
connect_thread unless defined?(PhusionPassenger)
|
51
|
+
connect_passenger_forked if defined?(PhusionPassenger)
|
52
52
|
rescue StandardError => e
|
53
53
|
@config.logger.error("SSEClient start Error: #{e.inspect}")
|
54
54
|
end
|
@@ -15,7 +15,8 @@ module SplitIoClient
|
|
15
15
|
return if SplitIoClient::Helpers::ThreadHelper.alive?(:segment_update_worker, @config)
|
16
16
|
|
17
17
|
@queue = Queue.new
|
18
|
-
perform_thread
|
18
|
+
perform_thread unless defined?(PhusionPassenger)
|
19
|
+
perform_passenger_forked if defined?(PhusionPassenger)
|
19
20
|
end
|
20
21
|
|
21
22
|
def add_to_queue(change_number, segment_name)
|
@@ -14,7 +14,8 @@ module SplitIoClient
|
|
14
14
|
return if SplitIoClient::Helpers::ThreadHelper.alive?(:split_update_worker, @config)
|
15
15
|
|
16
16
|
@queue = Queue.new
|
17
|
-
perform_thread
|
17
|
+
perform_thread unless defined?(PhusionPassenger)
|
18
|
+
perform_passenger_forked if defined?(PhusionPassenger)
|
18
19
|
end
|
19
20
|
|
20
21
|
def add_to_queue(change_number)
|