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] "Idle timeout reached" error when streaming response #44934

Copy link
Copy link
Closed
@vyshkant

Description

@vyshkant
Issue body actions

Symfony version(s) affected

5.3.13

Description

I have default_socket_timeout set to -1 (which is supposed to mean some big timeout). I noticed a bug, which appears when I'm trying to stream response: I have "Idle timeout reached" error.

How to reproduce

$response = $httpClient->request('GET', 'https://example.org');
$stream = $response->toStream();

which gets us the next call chain

where at the last point $timeoutMax equals 0, so any elapsed time will exceed this value.

Possible Solution

$timeoutMax value should be set to some big number instead of zero.

Additional Context

Relevant issues are: #44477 #44878

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.