splitclient-rb 8.10.0.pre.rc3 → 8.10.0.pre.rc4
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/sse/event_source/client.rb +4 -2
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb3dfc125b557830b44424f5d6a42dbf5ba16f823d7741910020083a3e755b95
|
|
4
|
+
data.tar.gz: 940c7952301a2859e3d5f5c77b00587ec81015a2919f893aadd38adb73bad867
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26170c1a732d710b4894a8c72b4c84a4d056fb6aa960fdfb3c91c9e7171dcd27fdd407808d4bd9684a70c9896487cdec4b9d57b8c8a9d07952eaf0f44934adee
|
|
7
|
+
data.tar.gz: 241aae97c4318d37d23284f4fb6cedc05f3991c49e4044048f8051c893177a6b0afecc80da393fa4b7d4e6037f5f09ba60e4a11381ab8d3ad2db2b653450828a
|
|
@@ -86,6 +86,7 @@ module SplitIoClient
|
|
|
86
86
|
def connect_stream(latch)
|
|
87
87
|
return Constants::PUSH_NONRETRYABLE_ERROR unless socket_write(latch)
|
|
88
88
|
while connected? || @first_event.value
|
|
89
|
+
log_if_debug("Inside coonnect_stream while loop.", 3)
|
|
89
90
|
begin
|
|
90
91
|
partial_data = ""
|
|
91
92
|
Timeout::timeout @read_timeout do
|
|
@@ -117,7 +118,7 @@ module SplitIoClient
|
|
|
117
118
|
|
|
118
119
|
process_data(partial_data)
|
|
119
120
|
end
|
|
120
|
-
log_if_debug("SSE read operation exited: #{connected}")
|
|
121
|
+
log_if_debug("SSE read operation exited: #{connected?}", 3)
|
|
121
122
|
|
|
122
123
|
nil
|
|
123
124
|
end
|
|
@@ -146,6 +147,7 @@ module SplitIoClient
|
|
|
146
147
|
|
|
147
148
|
if response_code == OK_CODE && !error_event
|
|
148
149
|
@connected.make_true
|
|
150
|
+
@config.logger.debug("SSE client first event Connected is true")
|
|
149
151
|
@telemetry_runtime_producer.record_streaming_event(Telemetry::Domain::Constants::SSE_CONNECTION_ESTABLISHED, nil)
|
|
150
152
|
push_status(Constants::PUSH_CONNECTED)
|
|
151
153
|
end
|
|
@@ -183,9 +185,9 @@ module SplitIoClient
|
|
|
183
185
|
end
|
|
184
186
|
|
|
185
187
|
def process_data(partial_data)
|
|
188
|
+
log_if_debug("Event partial data: #{partial_data}", 1)
|
|
186
189
|
return if partial_data.nil? || partial_data == KEEP_ALIVE_RESPONSE
|
|
187
190
|
|
|
188
|
-
log_if_debug("Event partial data: #{partial_data}", 1)
|
|
189
191
|
events = @event_parser.parse(partial_data)
|
|
190
192
|
events.each { |event| process_event(event) }
|
|
191
193
|
rescue StandardError => e
|