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 downloading of Mbed 2 when zip is too big #857

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

bridadan
Copy link
Contributor

The Mbed 2 zip was being downloaded into memory. With the latest releases, my Windows machine failed to download it because it ran out of memory! This downloads the zip in 1 MB chunks then writes them to disk to avoid running out of memory.

The Mbed 2 zip was being downloaded into memory. This downloads the zip
in 1 MB chunks then writes them to disk to avoid running out of memory.
screamerbg
screamerbg previously approved these changes Feb 23, 2019
Copy link
Contributor

@screamerbg screamerbg left a comment

Choose a reason for hiding this comment

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

LGTM. Looks like there are python 3 failures that need addressing.

theotherjimmy
theotherjimmy previously approved these changes Feb 23, 2019
Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

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

I like the code style improvement too!

mbed/mbed.py Outdated Show resolved Hide resolved
@bridadan bridadan dismissed stale reviews from theotherjimmy and screamerbg via 93a0a04 March 4, 2019 17:26
@theotherjimmy theotherjimmy merged commit 6be14da into ARMmbed:master Mar 4, 2019
@theotherjimmy
Copy link
Contributor

I was not planning on creating a release for this. @bridadan @screamerbg Do we need to release this now?

theotherjimmy added a commit to theotherjimmy/mbed-cli that referenced this pull request Mar 4, 2019
**Fixed:**
* ARMmbed#850 Don't overwrite `mbed_app.json` on newly imported projects
* ARMmbed#857 Stream downloads of mbed 2 zip files. Prevents Out of memory(OOM) errors
@theotherjimmy theotherjimmy mentioned this pull request Mar 4, 2019
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