You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I'm not sure I understand why this is different than #44477. Did you try the patch in #44878? Does it fix the issue for you?
Note that the fix has not been released and will be part of 5.3.14.
I'm not sure I understand why this is different than #44477. Did you try the patch in #44878? Does it fix the issue for you?
Note that the fix has not been released and will be part of 5.3.14.
No, I didn't try that patch. But as far as I see, the patch is about setting the correct timeout value to the $options object during request method execution, while my problem is about interpreting -0.0 value (which is hardcoded to be this value regardless of default_socket_timeout value) during response streaming.
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
which gets us the next call chain
symfony/src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php
Line 112 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php
Line 116 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php
Line 64 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php
Line 67 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php
Line 141 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/CommonResponseTrait.php
Line 149 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php
Line 151 in 4b41d17
symfony/src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php
Line 193 in 4b41d17
where at the last point
$timeoutMax
equals0
, 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
The text was updated successfully, but these errors were encountered: