splitclient-rb 7.1.0.pre.rc11-java → 7.1.0.pre.rc12-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: 26bf0f3cae06522a94f965702563f29bcfa56fe2
4
- data.tar.gz: fe35f604d41247738a0c7508b18d55b166a2643a
3
+ metadata.gz: 20b3554519953fdb8856cbb2eec10b2d1bd98133
4
+ data.tar.gz: 40de2fa3afa38b9dd9f798dd7d30d2c93350fb1c
5
5
  SHA512:
6
- metadata.gz: 9d3ebe98f1039c10fbb54dd737111f2225f145cfbe38625a9dfd26340193446f38344f6b7aff01e284571d410b9246f7d7900ef321d2979d93449bea8e7ef2eb
7
- data.tar.gz: 5c3caa17d12a007b3b8408f1eca42922758fda339695685132ab5932d322cff732096936e2a172282cbf4ecf35f58ed4e70ee29a7d14888642b2a7b8eb2f87d4
6
+ metadata.gz: 9e8c13be7f7b168ae43c29ace601258872d06e2fcc7ca3e27c30c0c16bf2db99b10c0fea8c6b9127940b37237f217de062cb6b5b731f44b0707b29d0d8629783
7
+ data.tar.gz: 68b8fbdbb271a3d5f9f45dedada5f86edc74ad811809e4779861d0b04866b9bb4c03725bdfda4540678ddb06993ab961acb09a155deb57bb6db73e4520901331
@@ -17,7 +17,7 @@ module SplitIoClient
17
17
  @config.logger.debug("Auth service response push_enabled: #{response[:push_enabled]}") if @config.debug_enabled
18
18
  if response[:push_enabled]
19
19
  @sse_handler.start(response[:token], response[:channels])
20
- schedule_next_token_refresh(120)
20
+ schedule_next_token_refresh(response[:exp])
21
21
  @back_off.reset
22
22
  else
23
23
  stop_sse
@@ -48,14 +48,16 @@ module SplitIoClient
48
48
 
49
49
  # Starts tasks if stream is enabled.
50
50
  def start_stream
51
- stream_start_thread unless defined?(PhusionPassenger)
51
+ @config.logger.debug("Starting push mode ...")
52
+ stream_start_thread
52
53
  stream_start_thread_forked if defined?(PhusionPassenger)
53
54
 
54
- stream_start_sse_thread unless defined?(PhusionPassenger)
55
+ stream_start_sse_thread
55
56
  stream_start_sse_thread_forked if defined?(PhusionPassenger)
56
57
  end
57
58
 
58
59
  def start_poll
60
+ @config.logger.debug("Starting polling mode ...")
59
61
  @synchronizer.start_periodic_fetch
60
62
  @synchronizer.start_periodic_data_recording
61
63
  rescue StandardError => e
@@ -47,7 +47,7 @@ module SplitIoClient
47
47
  def start(url)
48
48
  @uri = URI(url)
49
49
 
50
- connect_thread unless defined?(PhusionPassenger)
50
+ connect_thread
51
51
  connect_passenger_forked if defined?(PhusionPassenger)
52
52
  rescue StandardError => e
53
53
  @config.logger.error("SSEClient start Error: #{e.inspect}")
@@ -15,7 +15,7 @@ module SplitIoClient
15
15
  return if SplitIoClient::Helpers::ThreadHelper.alive?(:segment_update_worker, @config)
16
16
 
17
17
  @queue = Queue.new
18
- perform_thread unless defined?(PhusionPassenger)
18
+ perform_thread
19
19
  perform_passenger_forked if defined?(PhusionPassenger)
20
20
  end
21
21
 
@@ -14,7 +14,7 @@ module SplitIoClient
14
14
  return if SplitIoClient::Helpers::ThreadHelper.alive?(:split_update_worker, @config)
15
15
 
16
16
  @queue = Queue.new
17
- perform_thread unless defined?(PhusionPassenger)
17
+ perform_thread
18
18
  perform_passenger_forked if defined?(PhusionPassenger)
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.1.0.pre.rc11'
2
+ VERSION = '7.1.0.pre.rc12'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splitclient-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0.pre.rc11
4
+ version: 7.1.0.pre.rc12
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2020-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement