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

Bug in GoogleCloudStorageReadChannel can cause an infinite loop #1180

Open
rathinb-db opened this issue Jun 14, 2024 · 0 comments
Open

Bug in GoogleCloudStorageReadChannel can cause an infinite loop #1180

rathinb-db opened this issue Jun 14, 2024 · 0 comments

Comments

@rathinb-db
Copy link

In

, contentStream.skip can return 0 bytes.

See the commit message of
googleapis/google-http-java-client@8ae9cef, the JDK's HttpUrlConnection fails to notify clients when the connection is lost when reading a response (eg. a server gets restarted).

When this happens during a skip, we spin indefinitely. The fix is simple, detect this condition and throw an error.

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

No branches or pull requests

1 participant