splitclient-rb 7.3.3.pre.rc14-java → 7.3.3.pre.rc15-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe80dcceedb5a8c8314d21e237433db8ab31cf7
|
4
|
+
data.tar.gz: dda1b35792fa23504ec78977786ec8c6a4310d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
@@ -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
|
-
|
81
|
-
dispatch_action(
|
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
|
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
|
-
|
107
|
+
Constants::PUSH_NONRETRYABLE_ERROR
|
108
108
|
end
|
109
109
|
|
110
110
|
def socket_write(latch)
|
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.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-
|
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
|