Skip to content

Max data payload to 6mb, timeout from 6s to 12s#29

Merged
softmarshmallow merged 5 commits into
mainfrom
sustainable-cors-proxy-service
Jun 29, 2021
Merged

Max data payload to 6mb, timeout from 6s to 12s#29
softmarshmallow merged 5 commits into
mainfrom
sustainable-cors-proxy-service

Conversation

@softmarshmallow

@softmarshmallow softmarshmallow commented Jun 29, 2021

Copy link
Copy Markdown
Member

Most request targeting resources larger than 30mb will fail due to max mem & timeout (6s) previously.
This PR prevents user to request proxy request by preflight-checking the target resource size larger than 6mb (lambda payload limitation) with HEAD request and pre-ending the request with HTTP 413 Payload to large response code.

To sum up,

  • More execution time for fetching reasonable resources (under 30mb)
  • Preflight blocking resources that is larger than 30mb via internal HEAD request (which also did not work with HTTP 500 previously)

deployment status

  • 7:31 PM ( UTC ) Tuesday, June 29, 2021 - deployed

@softmarshmallow softmarshmallow changed the title Max data payload to 30mb, timeout from 6s to 12s Max data payload to 6mb, timeout from 6s to 12s Jun 29, 2021
@softmarshmallow softmarshmallow merged commit f9306d1 into main Jun 29, 2021
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.

1 participant