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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf664c0fd5ed0241b4f703ffb55eb27d28c11a51
4
- data.tar.gz: 52f8f49731d876e0e40b79e496e72533dede301f
3
+ metadata.gz: 26bf0f3cae06522a94f965702563f29bcfa56fe2
4
+ data.tar.gz: fe35f604d41247738a0c7508b18d55b166a2643a
5
5
  SHA512:
6
- metadata.gz: b35928aadbf8616cdde698bc0a5941b732920a23bd865ad06dc14161f7df7454aa26dbba1415815f06d4219a58bf0c79ed49643614f4638d7c5b79dd836e3707
7
- data.tar.gz: 041157f95cc2b847d2d6c74ef56a03f4ab6801929fd1fb7b0acd7dec717ff68dac12bbddcea85b3a910f0a28446c82993292909322044d5540b49b8e9b2fe9b5
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
- stream_start_sse_thread
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)
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.0.pre.rc10'
2
+ VERSION = '7.1.0.pre.rc11'
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.rc10
4
+ version: 7.1.0.pre.rc11
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software