Skip to content

Commit

Permalink
reconnect streams on cluster rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
erickpintor committed Jun 27, 2024
1 parent ef3e39c commit 12e13cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (es *Events) Next(event *Event) (err error) {
// presume that if the service is unavailable, the reconnect call will
// fail. Automatic retries and backoff mechanisms are impleneted at the
// Client level.
if _, ok := err.(net.Error); ok || err == io.ErrUnexpectedEOF {
if _, ok := err.(net.Error); ok || err == io.EOF || err == io.ErrUnexpectedEOF {
if err = es.reconnect(); err == nil {
err = es.Next(event)
}
Expand Down

0 comments on commit 12e13cf

Please sign in to comment.