Skip to content

Multi part write #6762

Answered by coryan
shaileshkm asked this question in Q&A
Jun 14, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

In such case (write part in multiple of 256KB), can the response ever be less than what I ask to write?

I feel like this was asked elsewhere. My understanding is that:

  • The backend always writes in blocks that are multiples of 256KiB, but this is not guaranteed by the documentation anywhere.
  • A PUT request almost always writes all the bytes you send before returning, but it can happen that it does not.

In this case, Is it possible for the server to respond with

case 2:
Range: bytes=262144-550000

The short answer is "I do not know". The longe answers are:

  • There is no guarantee it cannot happen
  • It is better to assume it can happen
  • You need to start sending multiples of 256KiB but fro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shaileshkm
Comment options

@coryan
Comment options

Answer selected by shaileshkm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants