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

Better total (body + attachments) size checking for documents #6

Merged

Conversation

nickva
Copy link

@nickva nickva commented Jul 13, 2018

Use the already computed (conservative) body size.

Switch multipart length calcuation to accept body and boundary sizes.

Issue apache#1200
Issue apache#1253

Use the already computed (conservative) body size.

Switch multipart length calcuation to accept body and boundary sizes.

Issue apache#1200
Issue apache#1253
@janl janl merged commit e2f556d into janl:feat/max-req-size Jul 13, 2018
@janl
Copy link
Owner

janl commented Jul 13, 2018

@nickva this is great, thank you!

Do you have any ideas about how to handle writes with stub: true? Sounds like we have to read that att size from the doc from disk, but maybe you have a better idea?

@nickva
Copy link
Author

nickva commented Jul 13, 2018

Is the length part of the stub too? I forgot...

@nickva
Copy link
Author

nickva commented Jul 13, 2018

The question is then do we validate the lengths? I don't think we do... That the stub might have length: 0 but the attachment on disk could be 1GB. Maybe when merging stubs we also validate that provided lengths match too.

@nickva nickva deleted the better-total-doc-size-checking branch August 7, 2019 05:25
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