Skip to content

Conversation

@katestoycheva
Copy link

Fixes #396

Changes proposed in this pull request

  • Continue to read from the input stream to make sure the buffer is filled with data until the chunk size is reached before executing the chunked upload request.

…ure the buffer is filled with data until the chunk size is reached before executing the chunked upload request.
@ghost
Copy link

ghost commented Jul 15, 2020

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@zengin zengin left a comment

Choose a reason for hiding this comment

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

please re-scope the read variable and confirm whether not checking the empty buffer was intentional and whether my interpretation makes sense.

@katestoycheva
Copy link
Author

Hi @zengin
I re-scoped the read variable and I confirm that your interpretation about not checking the empty buffer is correct.
Please review and let me know if anything else needs to be changed.

Copy link
Contributor

@zengin zengin left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@davidmoten
Copy link
Contributor

@katestoycheva just for curiosity how significant is this? What is this custom input stream? For my scenarios I don't care if a chunk ends up half the requested size but I do care if the chunk ends up 1% of the requested size repeatedly.

@zengin
Copy link
Contributor

zengin commented Jul 31, 2020

@davidmoten, there are more details in the attached issue. I think in @katestoycheva's example, the ratio is 32KB/5MB = 1/160.

#396

@davidmoten
Copy link
Contributor

@zengin thanks!

@baywet baywet self-assigned this Aug 17, 2020
@baywet baywet added this to the 1.10.0 milestone Aug 19, 2020
@baywet baywet merged commit 0a82540 into microsoftgraph:dev Aug 19, 2020
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.

OneDrive Chunked Upload - Chunk size is not taken into consideration in case of customized input stream

4 participants