splitclient-rb 7.3.3.pre.rc14-java → 7.3.3.pre.rc15-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8648cd9f96feaf87170f931e640405f393922b59
4
- data.tar.gz: 268645f59cde745017905266d920d43b866eebcb
3
+ metadata.gz: fbe80dcceedb5a8c8314d21e237433db8ab31cf7
4
+ data.tar.gz: dda1b35792fa23504ec78977786ec8c6a4310d0c
5
5
  SHA512:
6
- metadata.gz: 998dfcc024601f920d22e722624a993cfc7aa5d5c6c7099a3d62a0fa9a19915913f5f9ce8d198e2fca45f70b1c95aa22a1fc2c776f370c1a4ee2b60e4cd6ca3b
7
- data.tar.gz: 022fe8fc3f3db13ac6e7063ba31db902e81566a21f64a76b9b57a96b06cce58701020495d906b3d0f4ee26814370ec66f2df9307dc7584bb6df2bdaf234ff487
6
+ metadata.gz: ac6008e523ce1d692ff49ca33b6a9ccaab0940e539627b2a0fa42b9e1a744599872369fb8f5b8e6d0124d7bdbb7f42c877daf3774d88bd4a731b66c14a3d0f36
7
+ data.tar.gz: 9a581b2b1919fb562c7e2802d0031c35055cf2fbfbf7603812cc5a4a832fe463ba0118b2eb9b09804b9054ede1e1d8f4ffda9884900154fcd4a8e92345f1403f
@@ -37,10 +37,6 @@ module SplitIoClient
37
37
  @config.logger.error('## STOP SSE')
38
38
  @sse_handler.process_disconnect if @sse_handler.sse_client.nil?
39
39
  @sse_handler.stop
40
- stop_next_token_refresh
41
- end
42
-
43
- def stop_next_token_refresh
44
40
  SplitIoClient::Helpers::ThreadHelper.stop(:schedule_next_token_refresh, @config)
45
41
  end
46
42
 
@@ -118,8 +118,8 @@ module SplitIoClient
118
118
 
119
119
  @sse_connected.make_true
120
120
  @synchronizer.stop_periodic_fetch
121
- @sse_handler.start_workers
122
121
  @synchronizer.sync_all
122
+ @sse_handler.start_workers
123
123
  record_telemetry(Telemetry::Domain::Constants::SYNC_MODE, SYNC_MODE_STREAMING)
124
124
  rescue StandardError => e
125
125
  @config.logger.error("process_connected error: #{e.inspect}")
@@ -132,8 +132,8 @@ module SplitIoClient
132
132
  end
133
133
 
134
134
  @sse_connected.make_false
135
- @synchronizer.start_periodic_fetch
136
135
  @sse_handler.stop_workers
136
+ @synchronizer.start_periodic_fetch
137
137
  record_telemetry(Telemetry::Domain::Constants::SYNC_MODE, SYNC_MODE_POLLING)
138
138
 
139
139
  if reconnect
@@ -7,10 +7,12 @@ module SplitIoClient
7
7
  thread = config.threads[thread_sym]
8
8
 
9
9
  unless thread.nil?
10
- Thread.kill thread
11
- config.logger.debug("#{thread_sym} killed.") if config.debug_enabled
10
+ config.logger.debug("Stopping #{thread_sym} thread...") if config.debug_enabled
11
+ # sleep(0.1) while thread.status == 'run'
12
+ Thread.kill(thread)
12
13
  end
13
14
  rescue StandardError => e
15
+ puts e.inspect
14
16
  config.logger.error(e.inspect)
15
17
  end
16
18
 
@@ -77,8 +77,8 @@ module SplitIoClient
77
77
  @config.threads[:connect_stream] = Thread.new do
78
78
  @config.logger.error('## CONNECT THREAD')
79
79
  @config.logger.info('Starting connect_stream thread ...') if @config.debug_enabled
80
- closed_with_exception = connect_stream(latch)
81
- dispatch_action(closed_with_exception) unless closed_with_exception.nil?
80
+ action = connect_stream(latch)
81
+ dispatch_action(action)
82
82
  @config.logger.info('connect_stream thread finished.') if @config.debug_enabled
83
83
  @config.logger.error('#### DISCONNECTED')
84
84
  end
@@ -96,7 +96,7 @@ module SplitIoClient
96
96
  raise 'eof exception' if partial_data == :eof
97
97
  rescue Errno::EBADF, IOError => e
98
98
  @config.logger.error(e.inspect)
99
- return nil
99
+ return Constants::PUSH_NONRETRYABLE_ERROR
100
100
  rescue StandardError => e
101
101
  @config.logger.error("Error reading partial data: #{e.inspect}") if @config.debug_enabled
102
102
  return Constants::PUSH_RETRYABLE_ERROR
@@ -104,7 +104,7 @@ module SplitIoClient
104
104
 
105
105
  process_data(partial_data)
106
106
  end
107
- nil
107
+ Constants::PUSH_NONRETRYABLE_ERROR
108
108
  end
109
109
 
110
110
  def socket_write(latch)
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.3.3.pre.rc14'
2
+ VERSION = '7.3.3.pre.rc15'
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.3.3.pre.rc14
4
+ version: 7.3.3.pre.rc15
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement