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 leak of file upload objects #219

Merged
merged 1 commit into from
Oct 3, 2016
Merged

Fix leak of file upload objects #219

merged 1 commit into from
Oct 3, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 30, 2016

After an upload completed, we were failing to delete the details of the upload from the list (because the comparison was bogus), meaning we leaked an object each time.

While we're in the area:

  • make the request methods take an opts object (instead of a localTimeout param), and deprecate the WithPrefix versions.
  • make the non-xhr path for uploadContent use authedRequest instead of rolling its own.
  • make cancelUpload use the promise.abort() hack for simplicity

After an upload completed, we were failing to delete the details of the upload
from the list (because the comparison was bogus), meaning we leaked an object
each time.

While we're in the area:

  - make the request methods take an opts object (instead of a localTimeout
    param), and deprecate the WithPrefix versions.

  - make the non-xhr path for uploadContent use authedRequest instead of
    rolling its own.

  - make cancelUpload use the promise.abort() hack for simplicity
@dbkr dbkr merged commit 3080dc0 into develop Oct 3, 2016
@richvdh richvdh deleted the rav/refactor_httpapi branch October 7, 2016 14:48
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