Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement automatic retry of watch streams that terminate without any error #158

Merged
merged 2 commits into from
Jul 13, 2024

Conversation

tintoy
Copy link
Owner

@tintoy tintoy commented Jul 13, 2024

KubeResourceClient.ObserveEvents and KubeResourceClient.ObserveEventsDynamic now automatically retry the underlying HTTP request if it completes without error (which it shouldn't do unless the connection has been somehow garbage-collected, server-side). Requests that result in exceptions will still be surfaced via IObserver<T>.OnError.

Note: this change has required the library to target netstandard2.0 (was previously targeting netstandard1.4). Given the age of netstandard1.4, this seems unlikely to affect most consumers.

Relates to #157

@tintoy tintoy added enhancement New feature or request breaking-change/binary Breaking change in binary compatibility; potential issue for upstream consumers if when upgrading. labels Jul 13, 2024
@tintoy tintoy self-assigned this Jul 13, 2024
@tintoy tintoy merged commit ca10baa into develop Jul 13, 2024
1 check passed
@tintoy tintoy mentioned this pull request Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change/binary Breaking change in binary compatibility; potential issue for upstream consumers if when upgrading. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant