splitclient-rb 7.3.3.pre.rc15-java → 7.3.3.pre.rc16-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: fbe80dcceedb5a8c8314d21e237433db8ab31cf7
4
- data.tar.gz: dda1b35792fa23504ec78977786ec8c6a4310d0c
3
+ metadata.gz: bacbe3dee8e47bd0dd38b5f3428fb79ac6f48990
4
+ data.tar.gz: 2a108b99a72b99376b44d27b71a3f1da08588091
5
5
  SHA512:
6
- metadata.gz: ac6008e523ce1d692ff49ca33b6a9ccaab0940e539627b2a0fa42b9e1a744599872369fb8f5b8e6d0124d7bdbb7f42c877daf3774d88bd4a731b66c14a3d0f36
7
- data.tar.gz: 9a581b2b1919fb562c7e2802d0031c35055cf2fbfbf7603812cc5a4a832fe463ba0118b2eb9b09804b9054ede1e1d8f4ffda9884900154fcd4a8e92345f1403f
6
+ metadata.gz: 7727d3e058742acce12710687e0f01fef50096ad60071faf0443ef3d31e6ae942d30018e7ae2464d5fc89e6a6bd4cc591d4713a32ba6d5deb60f60c99f99ba74
7
+ data.tar.gz: 79b9bfebc6a073c6bf4b8efe3707d1acb5d214baf976a715fe2f9d815a9aaa334891d24e95a4c7127aaafa0dc57f3f6b296ff1c3a4783ae9e2019fc1153a95ee
@@ -18,7 +18,7 @@ module SplitIoClient
18
18
  @config.logger.debug("Auth service response push_enabled: #{response[:push_enabled]}") if @config.debug_enabled
19
19
 
20
20
  if response[:push_enabled] && @sse_handler.start(response[:token], response[:channels])
21
- schedule_next_token_refresh(response[:exp])
21
+ schedule_next_token_refresh(200)
22
22
  @back_off.reset
23
23
  record_telemetry(response[:exp])
24
24
 
@@ -35,7 +35,6 @@ module SplitIoClient
35
35
 
36
36
  def stop_sse
37
37
  @config.logger.error('## STOP SSE')
38
- @sse_handler.process_disconnect if @sse_handler.sse_client.nil?
39
38
  @sse_handler.stop
40
39
  SplitIoClient::Helpers::ThreadHelper.stop(:schedule_next_token_refresh, @config)
41
40
  end
@@ -35,7 +35,7 @@ module SplitIoClient
35
35
  @on[:action] = action
36
36
  end
37
37
 
38
- def close
38
+ def close(action = nil)
39
39
  unless connected?
40
40
  @config.logger.error('SSEClient already disconected.') if @config.debug_enabled
41
41
  return
@@ -44,6 +44,7 @@ module SplitIoClient
44
44
  @connected.make_false
45
45
  @socket&.close
46
46
  @config.logger.error('## CLOSE SSE')
47
+ dispatch_action(action) unless action.nil?
47
48
  rescue StandardError => e
48
49
  @config.logger.error("SSEClient close Error: #{e.inspect}")
49
50
  end
@@ -78,7 +79,7 @@ module SplitIoClient
78
79
  @config.logger.error('## CONNECT THREAD')
79
80
  @config.logger.info('Starting connect_stream thread ...') if @config.debug_enabled
80
81
  action = connect_stream(latch)
81
- dispatch_action(action)
82
+ dispatch_action(action) unless action.nil?
82
83
  @config.logger.info('connect_stream thread finished.') if @config.debug_enabled
83
84
  @config.logger.error('#### DISCONNECTED')
84
85
  end
@@ -96,7 +97,7 @@ module SplitIoClient
96
97
  raise 'eof exception' if partial_data == :eof
97
98
  rescue Errno::EBADF, IOError => e
98
99
  @config.logger.error(e.inspect)
99
- return Constants::PUSH_NONRETRYABLE_ERROR
100
+ return nil
100
101
  rescue StandardError => e
101
102
  @config.logger.error("Error reading partial data: #{e.inspect}") if @config.debug_enabled
102
103
  return Constants::PUSH_RETRYABLE_ERROR
@@ -104,7 +105,7 @@ module SplitIoClient
104
105
 
105
106
  process_data(partial_data)
106
107
  end
107
- Constants::PUSH_NONRETRYABLE_ERROR
108
+ nil
108
109
  end
109
110
 
110
111
  def socket_write(latch)
@@ -31,7 +31,7 @@ module SplitIoClient
31
31
  end
32
32
 
33
33
  def stop
34
- @sse_client.close
34
+ @sse_client.close(Constants::PUSH_NONRETRYABLE_ERROR)
35
35
  stop_workers
36
36
  rescue StandardError => e
37
37
  @config.logger.debug("SSEHandler stop error: #{e.inspect}") if @config.debug_enabled
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '7.3.3.pre.rc15'
2
+ VERSION = '7.3.3.pre.rc16'
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.3.3.pre.rc15
4
+ version: 7.3.3.pre.rc16
5
5
  platform: java
6
6
  authors:
7
7
  - Split Software