splitclient-rb 7.3.3.pre.rc6-java → 7.3.3.pre.rc10-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: cef1d0e7796aa26ef80add139ea7cc9fbd671803
|
4
|
+
data.tar.gz: 7cb0de04898f2a9fc5e4c1f041bfd5f948a3aecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8991127acb956b9bb256fb4ef34f5612d9b75d0e64079c222469499729c103ee07db89e6cae4a5d57b981daaa001cd959efaff80fd958902327b033e886e8231
|
7
|
+
data.tar.gz: ab57a7f198719c6e9e3e0dd20c26800fc6f2b4a95be2cde03b31ce53f21abb9f65e8a04d9241fe25e948cd244135dcf57a56545708e6346350ff64fea1bbf0a5
|
@@ -8,8 +8,9 @@ module SplitIoClient
|
|
8
8
|
|
9
9
|
unless thread.nil?
|
10
10
|
config.logger.debug("Stopping #{thread_sym} thread...") if config.debug_enabled
|
11
|
-
|
12
|
-
Thread.kill
|
11
|
+
config.logger.debug("################## #{thread.status}") if config.debug_enabled
|
12
|
+
Thread.kill thread
|
13
|
+
config.logger.debug("#{thread_sym} killed.") if config.debug_enabled
|
13
14
|
end
|
14
15
|
rescue StandardError => e
|
15
16
|
config.logger.error(e.inspect)
|
@@ -36,10 +36,9 @@ module SplitIoClient
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def close(action = Constants::PUSH_NONRETRYABLE_ERROR)
|
39
|
-
dispatch_action(action)
|
40
39
|
@connected.make_false
|
41
|
-
SplitIoClient::Helpers::ThreadHelper.stop(:connect_stream, @config)
|
42
40
|
@socket&.close
|
41
|
+
dispatch_action(action)
|
43
42
|
rescue StandardError => e
|
44
43
|
@config.logger.error("SSEClient close Error: #{e.inspect}")
|
45
44
|
end
|
@@ -72,12 +71,14 @@ module SplitIoClient
|
|
72
71
|
def connect_thread(latch)
|
73
72
|
@config.threads[:connect_stream] = Thread.new do
|
74
73
|
@config.logger.info('Starting connect_stream thread ...') if @config.debug_enabled
|
75
|
-
connect_stream(latch)
|
74
|
+
closed_with_exception = connect_stream(latch)
|
75
|
+
close(closed_with_exception) unless closed_with_exception.nil?
|
76
|
+
@config.logger.info('connect_stream thread finished.') if @config.debug_enabled
|
76
77
|
end
|
77
78
|
end
|
78
79
|
|
79
80
|
def connect_stream(latch)
|
80
|
-
socket_write(latch)
|
81
|
+
return Constants::PUSH_NONRETRYABLE_ERROR unless socket_write(latch)
|
81
82
|
|
82
83
|
while connected? || @first_event.value
|
83
84
|
begin
|
@@ -88,22 +89,23 @@ module SplitIoClient
|
|
88
89
|
raise 'eof exception' if partial_data == :eof
|
89
90
|
rescue StandardError => e
|
90
91
|
@config.logger.error('Error reading partial data: ' + e.inspect) if @config.debug_enabled
|
91
|
-
|
92
|
-
return
|
92
|
+
return Constants::PUSH_RETRYABLE_ERROR
|
93
93
|
end
|
94
94
|
|
95
95
|
process_data(partial_data)
|
96
96
|
end
|
97
|
+
nil
|
97
98
|
end
|
98
99
|
|
99
100
|
def socket_write(latch)
|
100
101
|
@first_event.make_true
|
101
102
|
@socket = socket_connect
|
102
103
|
@socket.write(build_request(@uri))
|
104
|
+
true
|
103
105
|
rescue StandardError => e
|
104
106
|
@config.logger.error("Error during connecting to #{@uri.host}. Error: #{e.inspect}")
|
105
|
-
close(Constants::PUSH_NONRETRYABLE_ERROR)
|
106
107
|
latch.count_down
|
108
|
+
false
|
107
109
|
end
|
108
110
|
|
109
111
|
def read_first_event(data, latch)
|
data/splitclient-rb.gemspec
CHANGED
@@ -51,12 +51,12 @@ Gem::Specification.new do |spec|
|
|
51
51
|
spec.add_development_dependency 'webmock', '~> 3.14'
|
52
52
|
|
53
53
|
spec.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
|
54
|
-
spec.add_runtime_dependency 'faraday', '>= 0.8', '< 2.0
|
55
|
-
spec.add_runtime_dependency 'json', '>= 1.8', '
|
56
|
-
spec.add_runtime_dependency 'jwt', '>= 1.0.0', '
|
54
|
+
spec.add_runtime_dependency 'faraday', '>= 0.8', '< 2.0'
|
55
|
+
spec.add_runtime_dependency 'json', '>= 1.8', '< 3.0'
|
56
|
+
spec.add_runtime_dependency 'jwt', '>= 1.0.0', '< 3.0'
|
57
57
|
spec.add_runtime_dependency 'lru_redux', '~> 1.1'
|
58
|
-
spec.add_runtime_dependency 'net-http-persistent', '>= 2.9', '
|
59
|
-
spec.add_runtime_dependency 'redis', '>= 4.0.0', '
|
60
|
-
spec.add_runtime_dependency 'socketry', '>= 0.4', '
|
58
|
+
spec.add_runtime_dependency 'net-http-persistent', '>= 2.9', '< 5.0'
|
59
|
+
spec.add_runtime_dependency 'redis', '>= 4.0.0', '< 5.0'
|
60
|
+
spec.add_runtime_dependency 'socketry', '>= 0.4', '< 1.0'
|
61
61
|
spec.add_runtime_dependency 'thread_safe', '~> 0.3'
|
62
62
|
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.rc10
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +214,7 @@ dependencies:
|
|
214
214
|
version: '0.8'
|
215
215
|
- - "<"
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: 2.0
|
217
|
+
version: '2.0'
|
218
218
|
name: faraday
|
219
219
|
prerelease: false
|
220
220
|
type: :runtime
|
@@ -225,16 +225,16 @@ dependencies:
|
|
225
225
|
version: '0.8'
|
226
226
|
- - "<"
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: 2.0
|
228
|
+
version: '2.0'
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
requirement: !ruby/object:Gem::Requirement
|
231
231
|
requirements:
|
232
232
|
- - ">="
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '1.8'
|
235
|
-
- - "
|
235
|
+
- - "<"
|
236
236
|
- !ruby/object:Gem::Version
|
237
|
-
version:
|
237
|
+
version: '3.0'
|
238
238
|
name: json
|
239
239
|
prerelease: false
|
240
240
|
type: :runtime
|
@@ -243,18 +243,18 @@ dependencies:
|
|
243
243
|
- - ">="
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '1.8'
|
246
|
-
- - "
|
246
|
+
- - "<"
|
247
247
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
248
|
+
version: '3.0'
|
249
249
|
- !ruby/object:Gem::Dependency
|
250
250
|
requirement: !ruby/object:Gem::Requirement
|
251
251
|
requirements:
|
252
252
|
- - ">="
|
253
253
|
- !ruby/object:Gem::Version
|
254
254
|
version: 1.0.0
|
255
|
-
- - "
|
255
|
+
- - "<"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
257
|
+
version: '3.0'
|
258
258
|
name: jwt
|
259
259
|
prerelease: false
|
260
260
|
type: :runtime
|
@@ -263,9 +263,9 @@ dependencies:
|
|
263
263
|
- - ">="
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: 1.0.0
|
266
|
-
- - "
|
266
|
+
- - "<"
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
268
|
+
version: '3.0'
|
269
269
|
- !ruby/object:Gem::Dependency
|
270
270
|
requirement: !ruby/object:Gem::Requirement
|
271
271
|
requirements:
|
@@ -286,9 +286,9 @@ dependencies:
|
|
286
286
|
- - ">="
|
287
287
|
- !ruby/object:Gem::Version
|
288
288
|
version: '2.9'
|
289
|
-
- - "
|
289
|
+
- - "<"
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version:
|
291
|
+
version: '5.0'
|
292
292
|
name: net-http-persistent
|
293
293
|
prerelease: false
|
294
294
|
type: :runtime
|
@@ -297,18 +297,18 @@ dependencies:
|
|
297
297
|
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '2.9'
|
300
|
-
- - "
|
300
|
+
- - "<"
|
301
301
|
- !ruby/object:Gem::Version
|
302
|
-
version:
|
302
|
+
version: '5.0'
|
303
303
|
- !ruby/object:Gem::Dependency
|
304
304
|
requirement: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
306
|
- - ">="
|
307
307
|
- !ruby/object:Gem::Version
|
308
308
|
version: 4.0.0
|
309
|
-
- - "
|
309
|
+
- - "<"
|
310
310
|
- !ruby/object:Gem::Version
|
311
|
-
version:
|
311
|
+
version: '5.0'
|
312
312
|
name: redis
|
313
313
|
prerelease: false
|
314
314
|
type: :runtime
|
@@ -317,18 +317,18 @@ dependencies:
|
|
317
317
|
- - ">="
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: 4.0.0
|
320
|
-
- - "
|
320
|
+
- - "<"
|
321
321
|
- !ruby/object:Gem::Version
|
322
|
-
version:
|
322
|
+
version: '5.0'
|
323
323
|
- !ruby/object:Gem::Dependency
|
324
324
|
requirement: !ruby/object:Gem::Requirement
|
325
325
|
requirements:
|
326
326
|
- - ">="
|
327
327
|
- !ruby/object:Gem::Version
|
328
328
|
version: '0.4'
|
329
|
-
- - "
|
329
|
+
- - "<"
|
330
330
|
- !ruby/object:Gem::Version
|
331
|
-
version: 0
|
331
|
+
version: '1.0'
|
332
332
|
name: socketry
|
333
333
|
prerelease: false
|
334
334
|
type: :runtime
|
@@ -337,9 +337,9 @@ dependencies:
|
|
337
337
|
- - ">="
|
338
338
|
- !ruby/object:Gem::Version
|
339
339
|
version: '0.4'
|
340
|
-
- - "
|
340
|
+
- - "<"
|
341
341
|
- !ruby/object:Gem::Version
|
342
|
-
version: 0
|
342
|
+
version: '1.0'
|
343
343
|
- !ruby/object:Gem::Dependency
|
344
344
|
requirement: !ruby/object:Gem::Requirement
|
345
345
|
requirements:
|