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 partial upload (of a stream) issue in the event when access token is refreshed automatically. #65

Merged
merged 1 commit into from Dec 26, 2018

Conversation

AVaksman
Copy link
Contributor

@AVaksman AVaksman commented Dec 26, 2018

Fixes googleapis/google-api-nodejs-client/issues/1457

  • Tests and linter pass

Prevent premature closure of rStream

  • "Switch" .on('end') listener from part.body (readable stream) to pStream to make sure that rStream is not closed before it consumed all data from pStream.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 26, 2018
@AVaksman AVaksman changed the title Prevent premature closure of rStream. Fix partial upload (of a stream) issue in the event when access token is refreshed automatically. Dec 26, 2018
@ajaaym ajaaym added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 26, 2018
@kokoro-team kokoro-team removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Dec 26, 2018
@ajaaym ajaaym merged commit a02305c into googleapis:master Dec 26, 2018
@JustinBeckwith
Copy link
Contributor

:waves: please follow up with a unit test for this one if possible

@AVaksman
Copy link
Contributor Author

:waves: please follow up with a unit test for this one if possible

I am following with a related PR #67 and will add a Unit Test there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drive API: partial upload of images?
6 participants