We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9f0c0 commit fe4c0ffCopy full SHA for fe4c0ff
lib/splitclient-rb/sse/event_source/client.rb
@@ -96,9 +96,9 @@ def connect_stream(latch)
96
raise 'eof exception' if partial_data == :eof
97
rescue Timeout::Error => e
98
log_if_debug("SSE read operation timed out!: #{e.inspect}", 3)
99
- return nil
+ return Constants::PUSH_RETRYABLE_ERROR
100
rescue EOFError
101
- break
+ raise 'eof exception'
102
rescue Errno::EAGAIN => e
103
log_if_debug("SSE client transient error: #{e.inspect}", 1)
104
IO.select([tcp_socket])
@@ -233,7 +233,7 @@ def log_if_debug(text, level)
233
@config.logger.debug(text)
234
when 2
235
@config.logger.info(text)
236
- when 3
+ else
237
@config.logger.error(text)
238
end
239
0 commit comments