Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@TomLorenzi

Description

@TomLorenzi
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.