-
Notifications
You must be signed in to change notification settings - Fork 143
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
MED-100 Make read_timeout default to None, only use it if set #813
Conversation
681413b
to
d02e684
Compare
@@ -158,7 +158,7 @@ async def _download_blob(self, src: str, dest: str): | |||
stream = await self.gcs_storage.download_stream( | |||
bucket=self.bucket_name, | |||
object_name=object_key, | |||
timeout=self.read_timeout if self.read_timeout is not None else -1, | |||
timeout=self.read_timeout, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Disabling the timeout seemed to be done by setting the value to -1
previously and now it's set to None
. Does that work as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually do not know.
Since it's really tedious to find this out empirically, let's just default to -1 for GCS. The commit 3dd0a55 does that.
34f295c
to
1008c55
Compare
798c38c
to
d6a037f
Compare
cbaec83
to
73442f2
Compare
73442f2
to
d611396
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the efforts on fixing the tests!
Fixes #814