splitclient-rb 7.3.3.pre.rc13-java → 7.3.3.pre.rc17-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 +4 -4
- data/lib/splitclient-rb/engine/push_manager.rb +1 -6
- data/lib/splitclient-rb/engine/sync_manager.rb +2 -2
- data/lib/splitclient-rb/helpers/thread_helper.rb +4 -2
- data/lib/splitclient-rb/sse/event_source/client.rb +4 -3
- data/lib/splitclient-rb/sse/sse_handler.rb +1 -1
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da379093f8e0dc9c56718aed2fb587a725596e1a
|
4
|
+
data.tar.gz: b4241c132380349b6c92621508cfab099114b1e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfc2a728718517113aaab5a1d360292fac68df97215035bf5613acceb60a78e90d91f615140e4dcd78ea485c7d379e0c7142f2db3482ad5f0c18ad8e3cdc8b4
|
7
|
+
data.tar.gz: 30aca33a03c96e855afcf02842af72742783a97b2bb5d8ec11ae78f789123c7798fd6d64ecf779258085e05cae8b992c88bc7433ef6217cb9f070c491293e0a9
|
@@ -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(
|
21
|
+
schedule_next_token_refresh(response[:exp])
|
22
22
|
@back_off.reset
|
23
23
|
record_telemetry(response[:exp])
|
24
24
|
|
@@ -35,12 +35,7 @@ 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
|
-
stop_next_token_refresh
|
41
|
-
end
|
42
|
-
|
43
|
-
def stop_next_token_refresh
|
44
39
|
SplitIoClient::Helpers::ThreadHelper.stop(:schedule_next_token_refresh, @config)
|
45
40
|
end
|
46
41
|
|
@@ -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
|
-
|
11
|
-
|
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
|
|
@@ -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
|
@@ -77,8 +78,8 @@ module SplitIoClient
|
|
77
78
|
@config.threads[:connect_stream] = Thread.new do
|
78
79
|
@config.logger.error('## CONNECT THREAD')
|
79
80
|
@config.logger.info('Starting connect_stream thread ...') if @config.debug_enabled
|
80
|
-
|
81
|
-
dispatch_action(
|
81
|
+
action = connect_stream(latch)
|
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
|
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.
|
4
|
+
version: 7.3.3.pre.rc17
|
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-
|
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
|