Skip to content

Commit

Permalink
Reconnect streams on cluster rollout (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickpintor authored Jun 27, 2024
1 parent ef3e39c commit 329511c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
2.0.2

0 comments on commit 329511c

Please sign in to comment.