Skip to content

[HttpClient] Idle timeout reached with StreamWrapper::createResource #44076

Answered by nicolas-grekas
rmikalkenas asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is in your code: instead of throwing the exception in the catch block, you should yield the chunk.

Note that clients already accept a logger so you might want to leverage that instead of doing this decorator.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rmikalkenas
Comment options

Answer selected by rmikalkenas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #44075 on November 16, 2021 12:06.