Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] Upgrading from version 5.4.3 to version 5.4.5 #46823

Closed
@TomLorenzi

Description

@TomLorenzi

Symfony version(s) affected

>5.4.5

Description

I just upraded my symfony/http-client package with composer using composer require symfony/http-client:5.4.5
(I first upgraded it to 5.4.9 and then I found my performance issue where coming from 5.4.3 to 5.4.5)
Since, I got huge performance issue doing some request, but it didn't seems to apply to every request.

The request I found my performance issues where GET request (can't be sure if it doesn't slow down POST request as well).

How to reproduce

Those request where really simple and here is a code sample :

$client = HttpClient::create();
$options = [
    "auth_bearer" => "bearer token",
    "body" => [
        "timeout" => 3600
    ]
];
$response = $this->client->request('GET', 'http://my.url/request', $options);

And when doing $response->getStatusCode() it was taking a huge amount of time compared to before my package upgrade

Possible Solution

Seems the difference between 5.4.3 and 5.4.5 it some default values but I can't tell how it can result in this

Additional Context

Absolutly client sided as the same request send with another tool like Postman didn't get any problems

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions