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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bacbe3dee8e47bd0dd38b5f3428fb79ac6f48990
|
4
|
+
data.tar.gz: 2a108b99a72b99376b44d27b71a3f1da08588091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
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
|
-
|
108
|
+
nil
|
108
109
|
end
|
109
110
|
|
110
111
|
def socket_write(latch)
|