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

Fix crash when download large file #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sega4revenge
Copy link

@sega4revenge sega4revenge commented Mar 25, 2022

Avoid memory consuming in app when download large file that causing crash app
Screen Shot 2022-03-25 at 18 56 48
Screen Shot 2022-03-25 at 19 05 11
Screen Shot 2022-03-25 at 19 06 07

Avoid memory consumes in app when download large file that causing crash app
@sega4revenge sega4revenge marked this pull request as draft March 25, 2022 12:12
@sega4revenge sega4revenge marked this pull request as ready for review March 25, 2022 12:16
@NghiaTranUIT NghiaTranUIT self-requested a review March 28, 2022 01:21
@@ -48,7 +48,7 @@ final class NetServiceTransport: NSObject {
// For some reason, Stream Task could send a big file
// https://github.com/ProxymanApp/atlantis/issues/57
static let MaximumSizePackage = 52428800 // 50Mb

static let MaximumSizeResponse = 2097152 // 2MB
Copy link
Member

@NghiaTranUIT NghiaTranUIT Apr 10, 2022

Choose a reason for hiding this comment

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

I suppose that we should increase the MaximumSizeResponse to 5Mb or 10Mb. 2Mb is likely too small.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, It likely too small, I'm fixing to 10 MB and you can check it.
Thank you

Update Maximum File Size Response to 10 MB

Co-Authored-By: Nghia Tran <[email protected]>
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.

2 participants