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

Slow requests with POST data > 1024 bytes #28

Open
Umkus opened this issue Feb 8, 2019 · 2 comments
Open

Slow requests with POST data > 1024 bytes #28

Umkus opened this issue Feb 8, 2019 · 2 comments

Comments

@Umkus
Copy link

Umkus commented Feb 8, 2019

When a POST request is larger than 1024 bytes - each such request takes just above 1 second to finish.
Additionally in these cases $_SERVER would contain an extra key [HTTP_EXPECT] => 100-continue.

This looks somewhat related to this issue: https://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024

Reproduces on both current layer versions.

@Umkus Umkus changed the title Slow POST > 1024 bytes Slow requests with POST data > 1024 bytes Feb 8, 2019
@txase
Copy link
Member

txase commented Feb 8, 2019

Which of the following issues are you hitting?

  • You wrote a PHP function that tries to make a request from within the function out to another rest API
  • You are trying to make a request from somewhere else to an API Gateway or ALB that is backed by a PHP function, and the request fails

If it's the second case, are you using an API Gateway or ALB?

@Umkus
Copy link
Author

Umkus commented Feb 9, 2019

It's the second case. I'm sending a POST request through an API gateway.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants