Skip to content

Fix chunk upload with ChunkedStreamReader to cancel underlying stream#920

Open
hoangdat wants to merge 1 commit into
masterfrom
fix/chunk_upload
Open

Fix chunk upload with ChunkedStreamReader to cancel underlying stream#920
hoangdat wants to merge 1 commit into
masterfrom
fix/chunk_upload

Conversation

@hoangdat
Copy link
Copy Markdown
Member

@hoangdat hoangdat commented Feb 1, 2023

Root cause:

  • can not free resource when file.openRead() for each chunk

Solution:

  • using ChunkStreamReader to cancel the underlying stream

@hoangdat hoangdat temporarily deployed to dev February 1, 2023 10:20 — with GitHub Actions Inactive
@hoangdat hoangdat temporarily deployed to dev February 1, 2023 10:20 — with GitHub Actions Inactive
Copy link
Copy Markdown
Member

@dab246 dab246 left a comment

Choose a reason for hiding this comment

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

Please check case: _chunkedStreamReader?.cancel(); when upload failed

@hoangdat hoangdat temporarily deployed to dev February 1, 2023 15:08 — with GitHub Actions Inactive
@hoangdat hoangdat temporarily deployed to dev February 1, 2023 15:08 — with GitHub Actions Inactive
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