Skip to content

client: reconnect after an EOF#6

Merged
travisshivers merged 4 commits intomainfrom
ttshivers.eof-error
Mar 31, 2025
Merged

client: reconnect after an EOF#6
travisshivers merged 4 commits intomainfrom
ttshivers.eof-error

Conversation

@travisshivers
Copy link

This brings over an upstream PR r3labs#148 to allow the client to reconnect after it gets an EOF.

Currently, if the client gets an EOF such as if the server restarts or has its connection interrupted, the read loop just exists silently without an error and subscriptions hang and stay open forever. This means that backoff.RetryNotify does not retry.

It should instead not treat EOF differently and pass the error along so that it can be retried or reacted to to clean up open subscriptions.

@travisshivers travisshivers merged commit 5370367 into main Mar 31, 2025
@travisshivers travisshivers deleted the ttshivers.eof-error branch March 31, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants