Skip to content

Fix a hang issue in downloading when there's transient network issue#22894

Merged
EmmaZhu merged 1 commit intomainfrom
storage/blob_hang_fix
Aug 16, 2022
Merged

Fix a hang issue in downloading when there's transient network issue#22894
EmmaZhu merged 1 commit intomainfrom
storage/blob_hang_fix

Conversation

@EmmaZhu
Copy link
Copy Markdown
Member

@EmmaZhu EmmaZhu commented Aug 15, 2022

Packages impacted by this PR

@azure/storage-blob
@azure/storage-file-share

Issues associated with this PR

Describe the problem that is addressed by this PR

Fix a hang issue in downloading when there's transient network issue

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator? No. (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Aug 15, 2022
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

export const DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES: number = 4 * 1024 * 1024; // 4MB
export const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS: number = 5;

export const REQUEST_TIMEOUT: number = 100 * 1000; // In ms
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to make this configurable?

@EmmaZhu EmmaZhu merged commit d51125a into main Aug 16, 2022
@EmmaZhu EmmaZhu deleted the storage/blob_hang_fix branch August 16, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants