Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Add max_document_size checking for multipart PUT requests #201

Merged
merged 1 commit into from
Oct 6, 2016

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Oct 4, 2016

Previously multipart/related PUT requests didn't check maximum request sizes.

This commit checks content-length and compares that with the maximum.

This means keeping the current "semantics" of max_document_size which actually
means "max request size". But this makes the check more efficient and can
be done earlier in request processing time.

Jira: COUCHDB-3174

Previously multipart/related PUT requests didn't check maximum request sizes.

This commit checks content-length and compares that with the maximum.

This means keeping the current "semantics" of max_document_size which actually
means "max request size". But this makes the check more efficient and can
be done earlier in request processing time.

Jira: COUCHDB-3174
nickva added a commit to cloudant/couchdb-chttpd that referenced this pull request Oct 4, 2016
Previously multipart/related PUT requests didn't check maximum request sizes.

This commit checks content-length and compares that with the maximum.

This means keeping the current "semantics" of max_document_size which actually
means "max request size". But this makes the check more efficient and can
be done earlier in request processing time.

PR depends on apache/couchdb-couch#201 make sure to
merge that one first if accepted.

Jira: COUCHDB-3174
@davisp
Copy link
Member

davisp commented Oct 6, 2016

+1 but we'll want to document the new behavior somewhere. Also, you don't need the Jira: in front of your COUCHDB-3174 in the commit message.

@asfgit asfgit merged commit 7dec013 into apache:master Oct 6, 2016
@nickva nickva deleted the couchdb-3174 branch October 6, 2016 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants