Skip to content

Commit fe4c0ff

Browse files
committed
polish
1 parent af9f0c0 commit fe4c0ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/splitclient-rb/sse/event_source/client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def connect_stream(latch)
9696
raise 'eof exception' if partial_data == :eof
9797
rescue Timeout::Error => e
9898
log_if_debug("SSE read operation timed out!: #{e.inspect}", 3)
99-
return nil
99+
return Constants::PUSH_RETRYABLE_ERROR
100100
rescue EOFError
101-
break
101+
raise 'eof exception'
102102
rescue Errno::EAGAIN => e
103103
log_if_debug("SSE client transient error: #{e.inspect}", 1)
104104
IO.select([tcp_socket])
@@ -233,7 +233,7 @@ def log_if_debug(text, level)
233233
@config.logger.debug(text)
234234
when 2
235235
@config.logger.info(text)
236-
when 3
236+
else
237237
@config.logger.error(text)
238238
end
239239
end

0 commit comments

Comments
 (0)