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

Slow requests with POST data > 1024 bytes #28

Description

@Umkus

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.

Activity

  1. changed the title [-]Slow POST > 1024 bytes[/-] [+]Slow requests with POST data > 1024 bytes[/+] on Feb 8, 2019
  2. txase commented on Feb 8, 2019

    @txase
    Member

    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?

  3. Umkus commented on Feb 9, 2019

    @Umkus
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions